From: Stanislav Malyshev Date: Mon, 19 Mar 2018 08:17:14 +0000 (-0700) Subject: Set tests exit status by defaul - also in other instance. X-Git-Tag: php-7.1.17RC1~33 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f46da1da7ddc1af2395868eb6dcfc02a96c83396;p=php Set tests exit status by defaul - also in other instance. --- diff --git a/run-tests.php b/run-tests.php index 0f38e488ff..c7fcadeab2 100755 --- a/run-tests.php +++ b/run-tests.php @@ -979,7 +979,9 @@ save_or_mail_results(); 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); } exit(0);