summaryrefslogtreecommitdiffstats
path: root/tests/ts/libmount/context
diff options
context:
space:
mode:
authorRuediger Meier2015-12-10 16:56:11 +0100
committerRuediger Meier2015-12-10 19:05:25 +0100
commitee6c0ca65b36f4925f58d787276786252532be6f (patch)
tree6c0eab369c26ac473c1004d9f54b64d3f4935de7 /tests/ts/libmount/context
parenttests: skip automake's empty "Testsuite summary" (diff)
downloadkernel-qcow2-util-linux-ee6c0ca65b36f4925f58d787276786252532be6f.tar.gz
kernel-qcow2-util-linux-ee6c0ca65b36f4925f58d787276786252532be6f.tar.xz
kernel-qcow2-util-linux-ee6c0ca65b36f4925f58d787276786252532be6f.zip
tests: skip nonroot before checking for progs in PATH
The least annoying and most useful order is this one: 1. check for compiled UL commands 2. check for root 3. check for loop support 4. check for external progs Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'tests/ts/libmount/context')
-rwxr-xr-xtests/ts/libmount/context3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/ts/libmount/context b/tests/ts/libmount/context
index 9424fef90..357cab45a 100755
--- a/tests/ts/libmount/context
+++ b/tests/ts/libmount/context
@@ -13,10 +13,11 @@ ts_check_test_command "$TS_CMD_FINDMNT"
ts_check_test_command "$TS_CMD_MOUNT"
ts_check_test_command "$TS_CMD_UMOUNT"
ts_check_test_command "$TS_CMD_UUIDGEN"
+
+ts_skip_nonroot
ts_check_prog "mkfs.ext3"
ts_check_prog "mkfs.ext4"
-ts_skip_nonroot
TESTPROG="$TS_HELPER_LIBMOUNT_CONTEXT"
LABEL=libmount-test
UUID=$($TS_CMD_UUIDGEN)