mirror of https://github.com/ARMmbed/mbed-os.git
Fixed runtime error when test fails due to build failure and outputting test report file
parent
f10bb18e33
commit
f7fad72e44
|
@ -485,18 +485,21 @@ class SingleTestRunner(object):
|
||||||
)
|
)
|
||||||
|
|
||||||
# Add detailed test result to test summary structure
|
# Add detailed test result to test summary structure
|
||||||
if target not in self.test_summary_ext[toolchain][target]:
|
if test_id not in self.test_summary_ext[toolchain][target]:
|
||||||
self.test_summary_ext[toolchain][target][test_id] = { 0: {
|
self.test_summary_ext[toolchain][target][test_id] = []
|
||||||
'single_test_result' : self.TEST_RESULT_BUILD_FAILED,
|
|
||||||
'single_test_output' : '',
|
self.test_summary_ext[toolchain][target][test_id].append({ 0: {
|
||||||
'target_name' : target,
|
'single_test_result' : self.TEST_RESULT_BUILD_FAILED,
|
||||||
'toolchain_name' : toolchain,
|
'single_test_output' : '',
|
||||||
'test_id' : test_id,
|
'target_name' : target,
|
||||||
'test_description' : 'Toolchain build failed',
|
'target_name_unique': target,
|
||||||
'elapsed_time' : 0,
|
'toolchain_name' : toolchain,
|
||||||
'duration' : 0,
|
'test_id' : test_id,
|
||||||
'copy_method' : None
|
'test_description' : 'Toolchain build failed',
|
||||||
}}
|
'elapsed_time' : 0,
|
||||||
|
'duration' : 0,
|
||||||
|
'copy_method' : None
|
||||||
|
}})
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if self.opts_only_build_tests:
|
if self.opts_only_build_tests:
|
||||||
|
|
Loading…
Reference in New Issue