]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: add --skip-loopdevs
authorKarel Zak <kzak@redhat.com>
Tue, 17 Mar 2015 10:34:22 +0000 (11:34 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 17 Mar 2015 10:34:22 +0000 (11:34 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/functions.sh
tests/run.sh

index bfc3fa28d1bca7b4e276fd58cb5497689f22745c..38ed03d55482b358a6a8abe7316245aa859fa15d 100644 (file)
@@ -68,7 +68,7 @@ function ts_check_losetup {
        local tmp
        ts_check_test_command "$TS_CMD_LOSETUP"
 
-       if [ "$TS_OPT_FEAT_SKIP_LOOP" = "yes" ]; then
+       if [ "$TS_SKIP_LOOPDEVS" = "yes" ]; then
                ts_skip "loop-device tests disabled"
        fi
 
@@ -241,6 +241,7 @@ function ts_init_env {
        TS_VERBOSE=$(ts_has_option "verbose" "$*")
        TS_PARALLEL=$(ts_has_option "parallel" "$*")
        TS_KNOWN_FAIL=$(ts_has_option "known-fail" "$*")
+       TS_SKIP_LOOPDEVS=$(ts_has_option "skip-loopdevs" "$*")
 
        tmp=$( ts_has_option "memcheck" "$*")
        if [ "$tmp" == "yes" -a -f /usr/bin/valgrind ]; then
index f61b6e4f77e7bf1395b1d7f999689e010892ae7e..20afb77e160823af064bc0c041456f4713b16a48 100755 (executable)
@@ -47,6 +47,9 @@ while [ -n "$1" ]; do
        --verbose)
                OPTS="$OPTS --verbose"
                ;;
+       --skip-loopdevs)
+               OPTS="$OPTS --skip-loopdevs"
+               ;;
        --nonroot)
                if [ $(id -ru) -eq 0 ]; then
                        echo "Ignore util-linux test suite [non-root UID expected]."