Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-12-09 12:58:17 +0300
committerJoas Schilling <nickvergessen@gmx.de>2014-12-09 13:36:35 +0300
commit532bcf40b3a4b8c11a77f7f7a703ea147d7c66b7 (patch)
tree962440b724d58975b9f7ae4a4e82dedf7b3f87a7 /autotest.sh
parente61f24f2aae6163e09aa4462c9e2de4d592deb1a (diff)
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"