From 532bcf40b3a4b8c11a77f7f7a703ea147d7c66b7 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 9 Dec 2014 10:58:17 +0100 Subject: [PATCH] Allow autocomplete for test file in autotest.sh --- autotest.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/autotest.sh b/autotest.sh index 83a20699d0..abed4a8908 100755 --- a/autotest.sh +++ b/autotest.sh @@ -227,7 +227,11 @@ if [ -z "$1" ] execute_tests $DBCONFIG done else - execute_tests "$1" "$2" "$3" + FILENAME="$2" + if [ ! -f "tests/$FILENAME" ]; then + FILENAME="../$FILENAME" + fi + execute_tests "$1" "$FILENAME" "$3" fi cd "$BASEDIR"