@@ -1807,7 +1807,6 @@ function run_test(string $php, $file, array $env): string
1807
1807
$ skipCache = new SkipCache ($ enableSkipCache , $ cfg ['keep ' ]['skip ' ]);
1808
1808
}
1809
1809
1810
- $ retriable = true ;
1811
1810
$ retried = false ;
1812
1811
retry:
1813
1812
@@ -1851,7 +1850,6 @@ function run_test(string $php, $file, array $env): string
1851
1850
$ tested = $ test ->getName ();
1852
1851
1853
1852
if ($ test ->hasSection ('FILE_EXTERNAL ' )) {
1854
- $ retriable = false ;
1855
1853
if ($ num_repeats > 1 ) {
1856
1854
return skip_test ($ tested , $ tested_file , $ shortname , 'Test with FILE_EXTERNAL might not be repeatable ' );
1857
1855
}
@@ -1880,7 +1878,6 @@ function run_test(string $php, $file, array $env): string
1880
1878
}
1881
1879
$ php = $ php_cgi . ' -C ' ;
1882
1880
$ uses_cgi = true ;
1883
- $ retriable = false ;
1884
1881
if ($ num_repeats > 1 ) {
1885
1882
return skip_test ($ tested , $ tested_file , $ shortname , 'CGI does not support --repeat ' );
1886
1883
}
@@ -1898,15 +1895,13 @@ function run_test(string $php, $file, array $env): string
1898
1895
} else {
1899
1896
return skip_test ($ tested , $ tested_file , $ shortname , 'phpdbg not available ' );
1900
1897
}
1901
- $ retriable = false ;
1902
1898
if ($ num_repeats > 1 ) {
1903
1899
return skip_test ($ tested , $ tested_file , $ shortname , 'phpdbg does not support --repeat ' );
1904
1900
}
1905
1901
}
1906
1902
1907
1903
foreach (['CLEAN ' , 'STDIN ' , 'CAPTURE_STDIO ' ] as $ section ) {
1908
1904
if ($ test ->hasSection ($ section )) {
1909
- $ retriable = false ;
1910
1905
if ($ num_repeats > 1 ) {
1911
1906
return skip_test ($ tested , $ tested_file , $ shortname , "Test with $ section might not be repeatable " );
1912
1907
}
@@ -2092,7 +2087,6 @@ function run_test(string $php, $file, array $env): string
2092
2087
settings2array (preg_split ("/[ \n\r]+/ " , $ ini ), $ ini_settings );
2093
2088
2094
2089
if (isset ($ ini_settings ['opcache.opt_debug_level ' ])) {
2095
- $ retriable = false ;
2096
2090
if ($ num_repeats > 1 ) {
2097
2091
return skip_test ($ tested , $ tested_file , $ shortname , 'opt_debug_level tests are not repeatable ' );
2098
2092
}
@@ -2626,7 +2620,7 @@ function run_test(string $php, $file, array $env): string
2626
2620
2627
2621
$ wanted_re = null ;
2628
2622
}
2629
- if (!$ passed && !$ retried && $ retriable && error_may_be_retried ($ test , $ output )) {
2623
+ if (!$ passed && !$ retried && error_may_be_retried ($ test , $ output )) {
2630
2624
$ retried = true ;
2631
2625
goto retry;
2632
2626
}
0 commit comments