File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -802,14 +802,12 @@ function save_or_mail_results()
802
802
fclose ($ failed_tests_file );
803
803
}
804
804
805
- if (count ($ test_files ) || count ($ test_results )) {
806
- compute_summary ();
807
- if ($ html_output ) {
808
- fwrite ($ html_file , "<hr/> \n" . get_summary (false , true ));
809
- }
810
- echo "===================================================================== " ;
811
- echo get_summary (false , false );
805
+ compute_summary ();
806
+ if ($ html_output ) {
807
+ fwrite ($ html_file , "<hr/> \n" . get_summary (false , true ));
812
808
}
809
+ echo "===================================================================== " ;
810
+ echo get_summary (false , false );
813
811
814
812
if ($ html_output ) {
815
813
fclose ($ html_file );
@@ -821,7 +819,7 @@ function save_or_mail_results()
821
819
822
820
junit_save_xml ();
823
821
824
- if (getenv ('REPORT_EXIT_STATUS ' ) == 1 and preg_match ( ' / FAILED(?: |$)/ ' , implode ( ' ' , $ test_results )) ) {
822
+ if (getenv ('REPORT_EXIT_STATUS ' ) == 1 and $ sum_results [ ' FAILED ' ] ) {
825
823
exit (1 );
826
824
}
827
825
You can’t perform that action at this time.
0 commit comments