Compare commits

...

2 Commits

Author SHA1 Message Date
Ben McClelland
0b521a943e dont mark skipped tests as failure 2021-01-15 10:45:57 -07:00
Ben McClelland
36a3f04566 skip xfstests instead of fail if repo not specified 2021-01-15 10:45:57 -07:00
2 changed files with 6 additions and 5 deletions

View File

@@ -523,9 +523,10 @@ if [ -n "$T_TRACE_GLOB" ]; then
cat /sys/kernel/debug/tracing/trace > "$T_RESULTS/traces"
fi
if [ "$skipped" == 0 -a "$failed" == 0 ]; then
status=1
if [ "$failed" == 0 ]; then
msg "all tests passed"
exit 0
status=0
fi
if [ "$skipped" != 0 ]; then
@@ -534,4 +535,4 @@ fi
if [ "$failed" != 0 ]; then
msg "$failed tests failed, check fail.log"
fi
exit 1
exit $status

View File

@@ -19,10 +19,10 @@
# make sure we have our config
if [ -z "$T_XFSTESTS_REPO" ]; then
t_fail "xfstests requires -X repo"
t_skip "xfstests requires -X repo"
fi
if [ -z "$T_XFSTESTS_BRANCH" -a -z "$T_SKIP_CHECKOUT" ]; then
t_fail "xfstests requires -x branch"
t_skip "xfstests requires -x branch"
fi
t_quiet mkdir -p "$T_TMPDIR/mnt.scratch"