From: David Sterba Date: Mon, 20 Jan 2014 02:28:39 +0000 (+1100) Subject: check: accept tests/ prefix for test name on commandline X-Git-Tag: v2022.05.01~3289 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=d7e5b7f8f665b522506802fb6e3a42198529480c;p=xfstests-dev.git check: 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). Signed-off-by: David Sterba Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- diff --git a/check b/check index 320ad26b..61fb91b8 100755 --- a/check +++ b/check @@ -262,12 +262,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.arglist + echo $SRC_DIR/$test_dir/$test_name >>$tmp.arglist else # oops echo "$1 - unknown test, ignored"