diff --git a/test_reporting/junit_xml_parser.py b/test_reporting/junit_xml_parser.py index e29c588dc80..1c44bde50b8 100644 --- a/test_reporting/junit_xml_parser.py +++ b/test_reporting/junit_xml_parser.py @@ -384,7 +384,7 @@ def _update_test_summary(current, update): new_summary = {} for attribute, attr_type in REQUIRED_TESTSUITE_ATTRIBUTES: - new_summary[attribute] = str(round(attr_type(current[attribute]) + attr_type(update[attribute]), 3)) + new_summary[attribute] = str(round(attr_type(current.get(attribute, 0)) + attr_type(update.get(attribute, 0)), 3)) return new_summary