From: Joas Schilling Date: Tue, 9 Dec 2014 15:35:29 +0000 (+0100) Subject: Correctly run all tests again when no file is specified X-Git-Tag: v8.0.0alpha1~133^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0242c5c2d1a186ae9fb46465aa6c7d3ba7eade64;p=nextcloud-server.git Correctly run all tests again when no file is specified --- 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"