Skip to contentSkip to conversation

xfstests: accept tests/ prefix for test name on commandline

PATCH New David Sterba 1 participant 1 message Aug 29, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfstests: accept tests/ prefix for test name on commandline

Just for convenience to let tab completion or shell globs work (files that are not in the group file are ignored).

---
 check | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
check +2 -1
index 4085eae..51b1d8e 100755
@@ -235,12 +235,13 @@ if $have_test_arg; then
 			exit $status
 			;;
 		*)	test_dir=`dirname $1`
+			test_dir=${test_dir#$SRC_DIR/*}
 			test_name=`basename $1`
 			group_file=$SRC_DIR/$test_dir/group
 
 			if egrep "^$test_name" $group_file >/dev/null ; then
 				# in group file ... OK
-				echo $SRC_DIR/$1 >>$tmp.list
+				echo $SRC_DIR/$test_dir/$test_name >>$tmp.list
 			else
 				# oops
 				echo "$1 - unknown test, ignored"
Signature · 6 lines
1.8.3.1

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs