Allow autocomplete for test file in autotest.sh

This commit is contained in:
Joas Schilling 2014-12-09 10:58:17 +01:00
parent e61f24f2aa
commit 532bcf40b3
1 changed files with 5 additions and 1 deletions

View File

@ -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"