Skip to content

Commit 8df99e7

Browse files
committed
Fix running test for pdo_oci
1 parent 24c7038 commit 8df99e7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

extension/BuildPhpExtension/private/Invoke-Tests.ps1

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,15 @@ Function Invoke-Tests {
2424
$env:PHP_AMQP_HOST="rabbitmq"
2525
$env:PHP_AMQP_SSL_HOST="rabbitmq.example.org"
2626
if($Config.name -eq 'pdo_oci') {
27+
$env:TEST_WORKERS = 1
2728
Get-PhpSrc -PhpVersion $Config.php_version
29+
30+
# This test is not compatible with Oracle XE
31+
$testPath = "$currentDirectory\php-$($Config.php_version)-src\ext\pdo\tests\gh20553.phpt"
32+
if (Test-Path $testPath) {
33+
Remove-Item $testPath -Force
34+
}
35+
2836
$env:PDO_TEST_DIR = "$currentDirectory\php-$($Config.php_version)-src\ext\pdo\tests"
2937
$env:PDO_OCI_TEST_DIR = "$currentDirectory\tests"
3038
$env:PDO_OCI_TEST_USER = "system"
@@ -72,6 +80,7 @@ Function Invoke-Tests {
7280
if($null -ne $env:TEST_WORKERS -and $env:TEST_WORKERS -ne '') {
7381
$test_workers = $env:TEST_WORKERS
7482
}
83+
7584
if($Config.php_version -ge '7.4' -and $test_runner_args -notcontains '-j') {
7685
$test_runner_args += ('-j' + $test_workers)
7786
}

0 commit comments

Comments
 (0)