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:
Stanislav Malyshev 2018-03-18 15:04:50 -07:00
parent dfc07f038b
commit f19c94b555

View File

@ -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);
}