summaryrefslogtreecommitdiffstats
path: root/autotest.sh
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-12-09 16:35:29 +0100
committerJoas Schilling <nickvergessen@gmx.de>2014-12-09 16:36:41 +0100
commit0242c5c2d1a186ae9fb46465aa6c7d3ba7eade64 (patch)
tree3a56f9dbcb521f50f058394417873ae02e0863d0 /autotest.sh
parentbfcd5a3802030ca97836aca1e658aec434162922 (diff)
downloadnextcloud-server-0242c5c2d1a186ae9fb46465aa6c7d3ba7eade64.tar.gz
nextcloud-server-0242c5c2d1a186ae9fb46465aa6c7d3ba7eade64.zip
Correctly run all tests again when no file is specified
Diffstat (limited to 'autotest.sh')
-rwxr-xr-xautotest.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/autotest.sh b/autotest.sh
index abed4a8908a..7bb4c80cb9b 100755
--- a/autotest.sh
+++ b/autotest.sh
@@ -228,7 +228,7 @@ if [ -z "$1" ]
done
else
FILENAME="$2"
- if [ ! -f "tests/$FILENAME" ]; then
+ if [ ! -z "$2" ] && [ ! -f "tests/$FILENAME" ]; then
FILENAME="../$FILENAME"
fi
execute_tests "$1" "$FILENAME" "$3"