@@ -1854,7 +1854,6 @@ function run_test(string $php, $file, array $env): string
1854
1854
$ orig_php = $ php ;
1855
1855
$ php = escapeshellarg ($ php );
1856
1856
1857
- $ retriable = true ;
1858
1857
$ retried = false ;
1859
1858
retry:
1860
1859
@@ -1897,7 +1896,6 @@ function run_test(string $php, $file, array $env): string
1897
1896
$ tested = $ test ->getName ();
1898
1897
1899
1898
if ($ test ->hasSection ('FILE_EXTERNAL ' )) {
1900
- $ retriable = false ;
1901
1899
if ($ num_repeats > 1 ) {
1902
1900
return skip_test ($ tested , $ tested_file , $ shortname , 'Test with FILE_EXTERNAL might not be repeatable ' );
1903
1901
}
@@ -1926,7 +1924,6 @@ function run_test(string $php, $file, array $env): string
1926
1924
}
1927
1925
$ php = escapeshellarg ($ php_cgi ) . ' -C ' ;
1928
1926
$ uses_cgi = true ;
1929
- $ retriable = false ;
1930
1927
if ($ num_repeats > 1 ) {
1931
1928
return skip_test ($ tested , $ tested_file , $ shortname , 'CGI does not support --repeat ' );
1932
1929
}
@@ -1944,15 +1941,13 @@ function run_test(string $php, $file, array $env): string
1944
1941
} else {
1945
1942
return skip_test ($ tested , $ tested_file , $ shortname , 'phpdbg not available ' );
1946
1943
}
1947
- $ retriable = false ;
1948
1944
if ($ num_repeats > 1 ) {
1949
1945
return skip_test ($ tested , $ tested_file , $ shortname , 'phpdbg does not support --repeat ' );
1950
1946
}
1951
1947
}
1952
1948
1953
1949
foreach (['CLEAN ' , 'STDIN ' , 'CAPTURE_STDIO ' ] as $ section ) {
1954
1950
if ($ test ->hasSection ($ section )) {
1955
- $ retriable = false ;
1956
1951
if ($ num_repeats > 1 ) {
1957
1952
return skip_test ($ tested , $ tested_file , $ shortname , "Test with $ section might not be repeatable " );
1958
1953
}
@@ -2148,7 +2143,6 @@ function run_test(string $php, $file, array $env): string
2148
2143
settings2array (preg_split ("/[ \n\r]+/ " , $ ini ), $ ini_settings );
2149
2144
2150
2145
if (isset ($ ini_settings ['opcache.opt_debug_level ' ])) {
2151
- $ retriable = false ;
2152
2146
if ($ num_repeats > 1 ) {
2153
2147
return skip_test ($ tested , $ tested_file , $ shortname , 'opt_debug_level tests are not repeatable ' );
2154
2148
}
@@ -2653,7 +2647,7 @@ function run_test(string $php, $file, array $env): string
2653
2647
2654
2648
$ wanted_re = null ;
2655
2649
}
2656
- if (!$ passed && !$ retried && $ retriable && error_may_be_retried ($ test , $ output )) {
2650
+ if (!$ passed && !$ retried && error_may_be_retried ($ test , $ output )) {
2657
2651
$ retried = true ;
2658
2652
goto retry;
2659
2653
}
0 commit comments