fstests: Add / use _require_runas and _runas

Add _require_runas and _runas functions instead of open-coding it in
test cases.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
Andreas Gruenbacher
2016-06-28 00:40:21 +02:00
committed by Eryu Guan
parent 12132c4b5f
commit 9d93ce7ddd
5 changed files with 62 additions and 61 deletions
+10
View File
@@ -1995,6 +1995,16 @@ _require_seek_data_hole()
_notrun "File system does not support llseek(2) SEEK_DATA/HOLE"
}
_require_runas()
{
_require_test_program "runas"
}
_runas()
{
"$here/src/runas" "$@"
}
# check that a FS on a device is mounted
# if so, return mount point
#