summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2018-03-18 15:07:53 -0700
committerStanislav Malyshev <stas@php.net>2018-03-18 15:07:53 -0700
commit6aec16c0d9b04edc6de2ae3b357b80668dcbb690 (patch)
tree9d79462a69d5e87346455aacfac1bc7a8d0f1db4 /run-tests.php
parent397d40cdd7830add08e382c2e8f187b37b55f180 (diff)
parent077b7705af31ba4ef9ff17133cbed6343ae12c64 (diff)
downloadphp-git-6aec16c0d9b04edc6de2ae3b357b80668dcbb690.tar.gz
Merge branch 'PHP-7.2'
* PHP-7.2: Set tests exit status by default.
Diffstat (limited to 'run-tests.php')
-rw-r--r--run-tests.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/run-tests.php b/run-tests.php
index 18685961d4..7ab872119a 100644
--- a/run-tests.php
+++ b/run-tests.php
@@ -860,7 +860,9 @@ HELP;
junit_save_xml();
- if (getenv('REPORT_EXIT_STATUS') == 1 && ($sum_results['FAILED'] || $sum_results['BORKED'] || $sum_results['LEAKED'])) {
+ if (getenv('REPORT_EXIT_STATUS') !== '0' &&
+ getenv('REPORT_EXIT_STATUS') !== 'no' &&
+ ($sum_results['FAILED'] || $sum_results['BORKED'] || $sum_results['LEAKED'])) {
exit(1);
}