From 981c58705ada3f645232afa490ac334bc27306ae Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Sun, 12 Feb 2017 00:19:17 +0100 Subject: run-tests: Exit 1 on BORKED tests --- run-tests.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'run-tests.php') diff --git a/run-tests.php b/run-tests.php index fd34934389..f256803657 100755 --- a/run-tests.php +++ b/run-tests.php @@ -873,7 +873,7 @@ HELP; junit_save_xml(); - if (getenv('REPORT_EXIT_STATUS') == 1 and $sum_results['FAILED']) { + if (getenv('REPORT_EXIT_STATUS') == 1 && ($sum_results['FAILED'] || $sum_results['BORKED'])) { exit(1); } @@ -1009,7 +1009,7 @@ save_or_mail_results(); junit_save_xml(); -if (getenv('REPORT_EXIT_STATUS') == 1 and $sum_results['FAILED']) { +if (getenv('REPORT_EXIT_STATUS') == 1 && ($sum_results['FAILED'] || $sum_results['BORKED'])) { exit(1); } exit(0); -- cgit v1.2.1