summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2018-03-18 15:06:08 -0700
committerStanislav Malyshev <stas@php.net>2018-03-18 15:06:08 -0700
commit077b7705af31ba4ef9ff17133cbed6343ae12c64 (patch)
tree6c5ed7d38f6823ba857c77f4f67e6a6fdce3246e /run-tests.php
parent615ca3c99d5bc8a3f4ee89d1d5884b1218762c77 (diff)
parentf19c94b5555eaa1873d86e6d7f3894ac2f9c1450 (diff)
downloadphp-git-077b7705af31ba4ef9ff17133cbed6343ae12c64.tar.gz
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1: Set tests exit status by default.
Diffstat (limited to 'run-tests.php')
-rwxr-xr-xrun-tests.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/run-tests.php b/run-tests.php
index c54a482c4c..85e59e54bc 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -876,7 +876,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);
}