[CONFORMANCE] Fix report gewneration in case of mixed reports: rel and abs (#16505)

This commit is contained in:
Irina Efode 2023-03-23 15:08:18 +04:00 committed by GitHub
parent c89da1aee2
commit 448654ea65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,6 +101,9 @@ def merge_xmls(xml_paths: list):
continue continue
xml_value = None xml_value = None
if "relative_" in attr_name: if "relative_" in attr_name:
value = op_result.attrib.get(attr_name)
if value is None:
continue
xml_value = float(op_result.attrib.get(attr_name)) xml_value = float(op_result.attrib.get(attr_name))
else: else:
xml_value = int(op_result.attrib.get(attr_name)) xml_value = int(op_result.attrib.get(attr_name))