mirror of
https://github.com/versity/scoutfs.git
synced 2026-09-03 14:47:07 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user