Re: [PATCH] xfstests: Fix test wildcard expansion.

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

 



On Thu, May 30, 2013 at 05:02:19PM -0500, Rich Johnston wrote:
> 
> 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
> 
> Fix the parsing in check to expand the regular expressions for test names.

I just fixed this locally myself:

-                       if grep "^$test_name" $group_file >/dev/null ; then
+                       if egrep "^$test_name" $group_file >/dev/null ; then

Which just tells grep to treat the pattern as an extended regex....

Cheers,

Dave.
-- 
Dave Chinner
david@xxxxxxxxxxxxx

_______________________________________________
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