diff options
author | Stanislav Malyshev <stas@php.net> | 2018-03-18 15:04:50 -0700 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2018-03-18 15:04:50 -0700 |
commit | f19c94b5555eaa1873d86e6d7f3894ac2f9c1450 (patch) | |
tree | 8aa8b63943af3a261ea18983f537046361631fd1 /run-tests.php | |
parent | dfc07f038baec0ebaa3c9c9d87c8aeeb0019f778 (diff) | |
download | php-git-f19c94b5555eaa1873d86e6d7f3894ac2f9c1450.tar.gz |
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
Diffstat (limited to 'run-tests.php')
-rwxr-xr-x | run-tests.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/run-tests.php b/run-tests.php index 4a412f6f45..0f38e488ff 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); } |