]> source.dussan.org Git - nextcloud-server.git/commitdiff
Correctly run all tests again when no file is specified
authorJoas Schilling <nickvergessen@gmx.de>
Tue, 9 Dec 2014 15:35:29 +0000 (16:35 +0100)
committerJoas Schilling <nickvergessen@gmx.de>
Tue, 9 Dec 2014 15:36:41 +0000 (16:36 +0100)
autotest.sh

index abed4a8908a3eef69a5f2f4479d0dc717280c4f1..7bb4c80cb9b002bbd10f84d2a64517e6ed4b319b 100755 (executable)
@@ -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"