[PATCH] xfstests: fix the regex pattern in get_group_list of check
Wang Sheng-Hui
shhuiw at gmail.com
Fri Apr 12 01:12:35 CDT 2013
In group files, non comment line starts with a 3-digits, then followed by
space and other characters, but no group names.
The old regex in get_group_list uses the group name as part of the regex,
and fails './check -g xfs' run:
Group "xfs" is empty or not defined?
The patch removes the pattern for group name, and thus we can trigger tests
like "./check -g xfs" as normal.
Signed-off-by: Wang Sheng-Hui <shhuiw at gmail.com>
---
check | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/check b/check
index 966fbe5..abc65cb 100755
--- a/check
+++ b/check
@@ -100,7 +100,7 @@ get_group_list()
l=$(sed -n < $SRC_DIR/$d/group \
-e 's/#.*//' \
-e 's/$/ /' \
- -e "s;\(^[0-9][0-9][0-9]\).* $grp .*;$SRC_DIR/$d/\1;p")
+ -e "s;\(^[0-9][0-9][0-9]\) .*;$SRC_DIR/$d/\1;p")
grpl="$grpl $l"
done
echo $grpl
--
1.7.12.4
More information about the xfs
mailing list