From 9267afb16b8e861888e54f829015667753034980 Mon Sep 17 00:00:00 2001 From: Rich Johnston Date: Fri, 31 May 2013 07:02:48 -0500 Subject: [PATCH] xfstests: Fix test wildcard expansion. Before commit 38d58591 "xfstests: fix typo in check", check xfs/[0-9]?? would execute all tests/xfs/[0-9]?? because: 'if grep "^$testname" $group_file >/dev/null' returns the contents of $group_file because $testname="". Therefore xfs/[0-9]?? was echoed to $tmp.list Change to use egrep to fix the parsing. Signed-off-by: Rich Johnston Reviewed-by: Dave Chinner --- check | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check b/check index 8d324860..ff8fbcf4 100755 --- a/check +++ b/check @@ -242,7 +242,7 @@ if $have_test_arg; then test_name=`basename $1` group_file=$SRC_DIR/$test_dir/group - if grep "^$test_name" $group_file >/dev/null ; then + if egrep "^$test_name" $group_file >/dev/null ; then # in group file ... OK echo $SRC_DIR/$1 >>$tmp.list else -- 2.47.3