From d7e5b7f8f665b522506802fb6e3a42198529480c Mon Sep 17 00:00:00 2001 From: David Sterba Date: Mon, 20 Jan 2014 13:28:39 +1100 Subject: [PATCH] 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 --- check | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" -- 2.30.2