mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfstests: Run all tests when nothing is specified
Currently when no tests or test groups are specified xfstests will silently test nothing. Interestingly enough when test groups to exclude are specified the rest of the tests will be run. This commit changes that to run all possible tests (for a given file system) when no specific tests has been specified. This matches the old xfstests behaviour. Signed-off-by: Lukas Czerner <lczerner@redhat.com> Reviewed-by: Chandra Seetharaman <sekharan@us.ibm.com> Signed-off-by: Rich Johnston <rjohnston@sgi.com>
This commit is contained in:
committed by
Rich Johnston
parent
073841a774
commit
0b750dfb35
@@ -112,7 +112,7 @@ get_all_tests()
|
||||
for d in $SRC_GROUPS $FSTYP; do
|
||||
ls $SRC_DIR/$d/* | \
|
||||
grep -v "\..*" | \
|
||||
grep -v group >> $tmp.list 2>/dev/null
|
||||
grep -v "group\|Makefile" >> $tmp.list 2>/dev/null
|
||||
done
|
||||
}
|
||||
|
||||
@@ -258,8 +258,8 @@ elif $have_test_arg; then
|
||||
# had test numbers, but none in group file ... do nothing
|
||||
touch $tmp.list
|
||||
else
|
||||
# no test numbers, do everything from group file
|
||||
sed -n -e '/^[0-9][0-9][0-9]*/s/[ ].*//p' <group >$tmp.list
|
||||
# no test numbers, do everything
|
||||
get_all_tests
|
||||
fi
|
||||
|
||||
# sort the list of tests into numeric order
|
||||
|
||||
Reference in New Issue
Block a user