Merge branch 'PHP-7.2'

* PHP-7.2:
  Set tests exit status by defaul - also in other instance.
This commit is contained in:
Stanislav Malyshev 2018-03-19 01:18:54 -07:00
commit 371076d6f0

View File

@ -999,7 +999,9 @@ if ($html_output) {
save_or_mail_results();
junit_save_xml();
if (getenv('REPORT_EXIT_STATUS') == 1 && ($sum_results['FAILED'] || $sum_results['LEAKED'])) {
if (getenv('REPORT_EXIT_STATUS') !== '0' &&
getenv('REPORT_EXIT_STATUS') !== 'no' &&
($sum_results['FAILED'] || $sum_results['LEAKED'])) {
exit(1);
}
exit(0);