]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
tools/mkgroupfile: help the cases of group.list in number order v2022.05.22
authorZorro Lang <zlang@kernel.org>
Sat, 21 May 2022 05:32:19 +0000 (13:32 +0800)
committerZorro Lang <zlang@kernel.org>
Sat, 21 May 2022 18:51:35 +0000 (02:51 +0800)
The mkgroupfile doesn't sort cases in number order, that cause
fstests' ./new script can't find a proper number which isn't taken.
The unsorted case number might cause more problems, so fix it.

Fixes: 441606d28681 ("fstests: faster group file creation")
Signed-off-by: Zorro Lang <zlang@kernel.org>
tools/mkgroupfile

index 414cb538c21a9ec91989b7a40371a3ff1a2ff669..dcf896e0a2216810787f328f4eb8eab9cee2e981 100755 (executable)
@@ -62,8 +62,8 @@ ENDL
 
        # Aggregate the groups each test belongs to for the group file
        grep -I -R "^_begin_fstest" $test_dir/ | \
-               sed -e "s/^.*\/\($VALID_TEST_NAME\):_begin_fstest/\1/" \
-               >> $new_groups
+               sed -e "s/^.*\/\($VALID_TEST_NAME\):_begin_fstest/\1/" \
+               sort -ug >> $new_groups
 
        # Create the list of unique groups for existence checking
        grep -I -R "^_begin_fstest" $test_dir/ | \