summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2021-08-05 21:50:43 +0200
committerGitHub <noreply@github.com>2021-08-05 21:50:43 +0200
commitecc2a023113cf2522ca6ec9ebae32d168470bf35 (patch)
treeddecc151f2588fae0aba4b3c619d04768108e30a
parentd65a35ed3ad699fab23578b77c79fa50c2494ab9 (diff)
parentb3206de7361c3fffaba971cfd87b8859d2d8722b (diff)
downloadnextcloud-server-ecc2a023113cf2522ca6ec9ebae32d168470bf35.tar.gz
nextcloud-server-ecc2a023113cf2522ca6ec9ebae32d168470bf35.zip
Merge pull request #28325 from PhrozenByte/enhancement/noid/AutotestPhpunitEnv
autotest.sh: Add PHPUNIT_EXE environment variable
-rwxr-xr-xautotest.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/autotest.sh b/autotest.sh
index cf166a79186..ed66c7b2260 100755
--- a/autotest.sh
+++ b/autotest.sh
@@ -29,7 +29,10 @@ if [ -z "$PHP_EXE" ]; then
PHP_EXE=php
fi
PHP=$(which "$PHP_EXE")
-PHPUNIT=$(which phpunit)
+if [ -z "$PHPUNIT_EXE" ]; then
+ PHPUNIT_EXE=phpunit
+fi
+PHPUNIT=$(which "$PHPUNIT_EXE")
set -e