From f19c94b5555eaa1873d86e6d7f3894ac2f9c1450 Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Sun, 18 Mar 2018 15:04:50 -0700 Subject: [PATCH] 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 --- run-tests.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/run-tests.php b/run-tests.php index 4a412f6f458..0f38e488fff 100755 --- a/run-tests.php +++ b/run-tests.php @@ -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); }