diff options
-rwxr-xr-x | autotest.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/autotest.sh b/autotest.sh index 83a20699d01..abed4a8908a 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" |