mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
Set tests exit status by default.
Use REPORT_EXIT_STATUS=0 or REPORT_EXIT_STATUS=no to prevent it. Based on discussion in https://www.mail-archive.com/internals@lists.php.net/msg94141.html
This commit is contained in:
parent
dfc07f038b
commit
f19c94b555
@ -841,7 +841,9 @@ HELP;
|
||||
|
||||
junit_save_xml();
|
||||
|
||||
if (getenv('REPORT_EXIT_STATUS') == 1 && ($sum_results['FAILED'] || $sum_results['BORKED'])) {
|
||||
if (getenv('REPORT_EXIT_STATUS') !== '0' &&
|
||||
getenv('REPORT_EXIT_STATUS') !== 'no' &&
|
||||
($sum_results['FAILED'] || $sum_results['BORKED'])) {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user