Skip to content

Commit a16d948

Browse files
committed
Fix passing workers to run-tests.php
worker support was added in PHP 7.4 in run-tests.php
1 parent 5eab227 commit a16d948

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

extension/BuildPhpExtension/private/Invoke-Tests.ps1

+3-1
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,16 @@ Function Invoke-Tests {
4040
throw "Test runner $env:TEST_RUNNER does not exist."
4141
}
4242
$test_runner_args = @(
43-
'-j8',
4443
'-q',
4544
'--offline',
4645
'--show-diff',
4746
'--show-slow 1000',
4847
'--set-timeout 120',
4948
'-g FAIL,XFAIL,BORK,WARN,LEAK,SKIP'
5049
)
50+
if($Config.php_version -ge '7.4') {
51+
$test_runner_args += '-j8'
52+
}
5153

5254
$opcacheModes = @($env:TEST_OPCACHE_MODE)
5355
if($env:TEST_OPCACHE_MODE -eq 'both') {

0 commit comments

Comments
 (0)