From f46da1da7ddc1af2395868eb6dcfc02a96c83396 Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Mon, 19 Mar 2018 01:17:14 -0700 Subject: [PATCH] Set tests exit status by defaul - also in other instance. --- run-tests.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/run-tests.php b/run-tests.php index 0f38e488fff..c7fcadeab27 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);