fstests: fix group list generation for whacky test names
authorDave Chinner <dchinner@redhat.com>
Tue, 17 May 2022 07:01:03 +0000 (17:01 +1000)
committerZorro Lang <zlang@kernel.org>
Sat, 21 May 2022 18:51:35 +0000 (02:51 +0800)
commit1a04a7c9e6744b7cfd7c4d7baedab1de8bc3f2e5
treeb38416db86a39bf0ce4ae101f24cf5f62e76d961
parente6d4d963c69883d08227e2434c0452314e6bef6d
fstests: fix group list generation for whacky test names

Darrick noticed that tests/xfs/191-input-validation didn't get
generated properly. Fix the regex to handle this.

$ grep -I -R "^_begin_fstest" tests/xfs | \
  sed -e 's/^.*\/\([0-9]*\):_begin_fstest/\1/' |grep 191
tests/xfs/191-input-validation:_begin_fstest auto quick mkfs realtime
$
$ grep -I -R "^_begin_fstest" tests/xfs | \
  sed -e 's/^.*\/\([0-9]*\).*:_begin_fstest/\1/ ' |grep 191
191 auto quick mkfs realtime
$

Use the regexes for matching test names defined in common/test_names
rather than trying to open code it.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
tools/mkgroupfile