summarylogtreecommitdiffstats
path: root/php-tests.patch
blob: 6f01e6d0f4dbcf9be24840c75bdbeeea50beb199 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/run-tests.php
+++ b/run-tests.php
@@ -813,7 +813,7 @@
 
 		junit_save_xml();
 
-		if (getenv('REPORT_EXIT_STATUS') == 1 and preg_match('/FAILED(?: |$)/', implode(' ', $test_results))) {
+		if (getenv('REPORT_EXIT_STATUS') == 1 and $sum_results['FAILED']) {
 			exit(1);
 		}