[php-src] master: Use sapi/cli/php to run tests for faster failure (#6931)

From: Date: Fri, 30 Apr 2021 10:53:45 +0000
Subject: [php-src] master: Use sapi/cli/php to run tests for faster failure (#6931)
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-115975@lists.php.net to get a copy of this message
Author: Nikita Popov (nikic) Committer: GitHub (web-flow) Pusher: nikic Date: 2021-04-30T12:53:56+02:00 Commit: https://github.com/php/php-src/commit/8fc5daeb3f0bc7adcc7e75746f98c0c4385ad6fa Raw diff: https://github.com/php/php-src/commit/8fc5daeb3f0bc7adcc7e75746f98c0c4385ad6fa.diff Use sapi/cli/php to run tests for faster failure (#6931) We always run test steps on azure, even if a previous step failed, because we don't want a failure in one configuration to prevent testing of other configurations. However, if building PHP fails in the first place, then we currently end up testing the system PHP binary. This is not only useless, but will also result in a test runner hang and cause the job to time out. Avoid this by using sapi/cli/php instead of the installed php as the test binary. If we fail to build, then it will not exist, and testing will fail immediately. Changed paths: M azure/macos/test.yml M azure/test.yml Diff: diff --git a/azure/macos/test.yml b/azure/macos/test.yml index f139e53e404bf..cc7db39660497 100644 --- a/azure/macos/test.yml +++ b/azure/macos/test.yml @@ -9,7 +9,7 @@ steps: export SKIP_IO_CAPTURE_TESTS=1 export CI_NO_IPV6=1 rm -rf junit.xml | true - /usr/local/bin/php run-tests.php -P -q \ + sapi/cli/php run-tests.php -P -q \ -j$(sysctl -n hw.ncpu) \ -g FAIL,XFAIL,BORK,WARN,LEAK,XLEAK,SKIP \ --offline \ diff --git a/azure/test.yml b/azure/test.yml index 95fa7b4a09699..f96075c20d0ef 100644 --- a/azure/test.yml +++ b/azure/test.yml @@ -17,7 +17,7 @@ steps: export SKIP_IO_CAPTURE_TESTS=1 export MSAN_SYMBOLIZER_PATH=/usr/lib/llvm-6.0/bin/llvm-symbolizer rm -rf junit.xml | true - php run-tests.php -P -q \ + sapi/cli/php run-tests.php -P -q \ -j$(/usr/bin/nproc) \ -g FAIL,XFAIL,BORK,WARN,LEAK,XLEAK,SKIP \ --offline \

« previous php.cvs (#115975) next »