summaryrefslogtreecommitdiffstats
path: root/autotest.sh
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-12-09 10:58:17 +0100
committerJoas Schilling <nickvergessen@gmx.de>2014-12-09 11:36:35 +0100
commit532bcf40b3a4b8c11a77f7f7a703ea147d7c66b7 (patch)
tree962440b724d58975b9f7ae4a4e82dedf7b3f87a7 /autotest.sh
parente61f24f2aae6163e09aa4462c9e2de4d592deb1a (diff)
downloadnextcloud-server-532bcf40b3a4b8c11a77f7f7a703ea147d7c66b7.tar.gz
nextcloud-server-532bcf40b3a4b8c11a77f7f7a703ea147d7c66b7.zip
Allow autocomplete for test file in autotest.sh
Diffstat (limited to 'autotest.sh')
-rwxr-xr-xautotest.sh6
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"