Browse Source

Allow to run autotest with phpunit options

Signed-off-by: Joas Schilling <coding@schilljs.com>
Joas Schilling 7 years ago
parent
commit
11fa8fe7ee
1 changed files with 1 additions and 1 deletions
  1. 1 1
      autotest.sh

+ 1 - 1
autotest.sh

@@ -389,7 +389,7 @@ if [ -z "$1" ]
 	done
 else
 	FILENAME="$2"
-	if [ ! -z "$2" ] && [ ! -f "tests/$FILENAME" ]; then
+	if [ ! -z "$2" ] && [ ! -f "tests/$FILENAME" ] && [ "${FILENAME:0:2}" != "--" ]; then
 		FILENAME="../$FILENAME"
 	fi
 	execute_tests "$1" "$FILENAME" "$3"