scoutfs-tests: add -y for xfstests args

Add a -y argument so we can specify additional args to ./xfstests, and
clean up our xfstest a bit while we're in there.

Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
Zach Brown
2020-01-17 11:23:03 -08:00
committed by Zach Brown
parent 1ce084fcd9
commit 4c225c2061
2 changed files with 9 additions and 4 deletions
+6
View File
@@ -64,6 +64,7 @@ $(basename $0) options:
-u | Branch to checkout in scoutfs-utils-dev repo.
-X | xfstests git repo. Used by tests/xfstests.sh.
-x | xfstests git branch to checkout and track.
-y | xfstests ./check additional args
EOF
}
@@ -166,6 +167,11 @@ while true; do
T_XFSTESTS_BRANCH="$2"
shift
;;
-y)
test -n "$2" || die "-x requires xfstests ./check args argument"
T_XFSTESTS_ARGS="$2"
shift
;;
-h|-\?|--help)
show_help
exit 1
+3 -4
View File
@@ -18,7 +18,7 @@
#
# make sure we have our config
if [ -z "$T_XFSTESTS_REPO" -o -z "$T_XFSTESTS_REPO" ]; then
if [ -z "$T_XFSTESTS_REPO" -o -z "$T_XFSTESTS_BRANCH" ]; then
t_fail "xfstests requires -X repo and -x branch"
fi
@@ -79,9 +79,8 @@ EOF
t_restore_output
echo "(showing output of xfstests)"
./check -g quick -E local.exclude
#./check tests/generic/001
#./check tests/generic/006
args="-E local.exclude ${T_XFSTESTS_ARGS:--g quick}"
./check $args
# the fs is unmounted when check finishes
#