@@ -426,7 +426,6 @@ def execute_thread_slice(self, q, target, toolchains, clean, test_ids, build_rep
426
426
print self .logger .log_line (self .logger .LogType .ERROR , 'There were errors while building library %s' % (lib_id ))
427
427
build_report [toolchain ]["library_failure" ] = True
428
428
build_report [toolchain ]["library_build_failing" ].append (lib_id )
429
- #return self.test_summary, self.shuffle_random_seed, self.test_summary_ext, self.test_suite_properties_ext
430
429
continue
431
430
432
431
@@ -456,6 +455,8 @@ def execute_thread_slice(self, q, target, toolchains, clean, test_ids, build_rep
456
455
if target not in self .test_summary_ext [toolchain ]:
457
456
self .test_summary_ext [toolchain ][target ] = {} # test_summary_ext : toolchain : target
458
457
458
+ tt_test_id = "%s::%s::%s" % (toolchain , target , test_id ) # For logging only
459
+
459
460
project_name = self .opts_firmware_global_name if self .opts_firmware_global_name else None
460
461
try :
461
462
path = build_project (test .source_dir ,
@@ -476,6 +477,7 @@ def execute_thread_slice(self, q, target, toolchains, clean, test_ids, build_rep
476
477
project_name_str = project_name if project_name is not None else test_id
477
478
print self .logger .log_line (self .logger .LogType .ERROR , 'There were errors while building project %s' % (project_name_str ))
478
479
build_report [toolchain ]["test_build_failing" ].append (test_id )
480
+ self .build_failures .append (tt_test_id )
479
481
480
482
# Append test results to global test summary
481
483
self .test_summary .append (
@@ -1470,12 +1472,17 @@ def singletest_in_cli_mode(single_test):
1470
1472
# prints well-formed summary with results (SQL table like)
1471
1473
# table shows text x toolchain test result matrix
1472
1474
print single_test .generate_test_summary_by_target (test_summary , shuffle_seed )
1473
- print
1475
+
1474
1476
print "Completed in %.2f sec" % (elapsed_time )
1475
1477
print
1476
- print print_build_results (single_test .build_successes , "Build successes:" ),
1477
- print print_build_results (single_test .build_skipped , "Build skipped:" ),
1478
- print print_build_results (single_test .build_failures , "Build failures:" ),
1478
+ # Write summary of the builds
1479
+
1480
+ for report , report_name in [(single_test .build_successes , "Build successes:" ),
1481
+ (single_test .build_skipped , "Build skipped:" ),
1482
+ (single_test .build_failures , "Build failures:" ),
1483
+ ]:
1484
+ if report :
1485
+ print print_build_results (report , report_name )
1479
1486
1480
1487
# Store extra reports in files
1481
1488
if single_test .opts_report_html_file_name :
0 commit comments