Fixed runtime error when test fails due to build failure and outputting test report file

pull/1167/head
Brian Daniels 2015-06-08 12:45:04 -05:00
parent f10bb18e33
commit f7fad72e44
1 changed files with 15 additions and 12 deletions

View File

@ -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: