]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfstests: Fix test wildcard expansion.
authorRich Johnston <rjohnston@sgi.com>
Fri, 31 May 2013 12:02:48 +0000 (07:02 -0500)
committerRich Johnston <rjohnston@sgi.com>
Fri, 31 May 2013 12:02:48 +0000 (07:02 -0500)
commit9267afb16b8e861888e54f829015667753034980
tree55c714ea917205b6707da8c98af2734cfc580d80
parent3f09dca681eb0cdd850abbcdb4d6997a0890b09a
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 <rjohnston@sgi.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
check