]> granicus.if.org Git - php/commitdiff
Set tests exit status by defaul - also in other instance.
authorStanislav Malyshev <stas@php.net>
Mon, 19 Mar 2018 08:17:14 +0000 (01:17 -0700)
committerStanislav Malyshev <stas@php.net>
Mon, 19 Mar 2018 08:17:14 +0000 (01:17 -0700)
run-tests.php

index 0f38e488fff094eb8bf0eac702f357485eec90db..c7fcadeab27632c218b62b1ed589057783c601ab 100755 (executable)
@@ -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);