[PATCH] xfstests: fix the regex pattern in get_group_list of check

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 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

_______________________________________________
xfs mailing list
xfs@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/xfs




[Index of Archives]     [Linux XFS Devel]     [Linux Filesystem Development]     [Filesystem Testing]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux