Loading scripts/parse_xml_report.py +16 −12 Original line number Diff line number Diff line Loading @@ -2,8 +2,6 @@ import argparse import re import math import numpy as np from xml.etree import ElementTree """ Loading Loading @@ -137,14 +135,16 @@ if __name__ == "__main__": testresult = "PASS" # Extract number of splits, if any splits = [p.split('_')[-1] for p in properties_found if 'split' in p] splits = [p.split("_")[-1] for p in properties_found if "split" in p] splits = list(dict.fromkeys(splits)) # Remove duplicates, keeping order if splits: properties_values = {} for s in splits: properties_suffixed = [p + '_' + s for p in PROPERTIES] properties_values[s] = [str(properties_found.get(p)) for p in properties_suffixed] properties_suffixed = [p + "_" + s for p in PROPERTIES] properties_values[s] = [ str(properties_found.get(p)) for p in properties_suffixed ] else: properties_values = [str(properties_found.get(p)) for p in PROPERTIES] Loading Loading @@ -172,8 +172,12 @@ if __name__ == "__main__": for s in splits: fulltestname_split = f"{fulltestname}-{s}" results[fmt][cat][fulltestname_split] = {"Result": testresult} for propertyname, propertyvalue in zip(PROPERTIES, properties_values[s]): results[fmt][cat][fulltestname_split][propertyname] = propertyvalue for propertyname, propertyvalue in zip( PROPERTIES, properties_values[s] ): results[fmt][cat][fulltestname_split][propertyname] = ( propertyvalue ) else: results[fmt][cat][fulltestname] = {"Result": testresult} for propertyname, propertyvalue in zip(PROPERTIES, properties_values): Loading Loading
scripts/parse_xml_report.py +16 −12 Original line number Diff line number Diff line Loading @@ -2,8 +2,6 @@ import argparse import re import math import numpy as np from xml.etree import ElementTree """ Loading Loading @@ -137,14 +135,16 @@ if __name__ == "__main__": testresult = "PASS" # Extract number of splits, if any splits = [p.split('_')[-1] for p in properties_found if 'split' in p] splits = [p.split("_")[-1] for p in properties_found if "split" in p] splits = list(dict.fromkeys(splits)) # Remove duplicates, keeping order if splits: properties_values = {} for s in splits: properties_suffixed = [p + '_' + s for p in PROPERTIES] properties_values[s] = [str(properties_found.get(p)) for p in properties_suffixed] properties_suffixed = [p + "_" + s for p in PROPERTIES] properties_values[s] = [ str(properties_found.get(p)) for p in properties_suffixed ] else: properties_values = [str(properties_found.get(p)) for p in PROPERTIES] Loading Loading @@ -172,8 +172,12 @@ if __name__ == "__main__": for s in splits: fulltestname_split = f"{fulltestname}-{s}" results[fmt][cat][fulltestname_split] = {"Result": testresult} for propertyname, propertyvalue in zip(PROPERTIES, properties_values[s]): results[fmt][cat][fulltestname_split][propertyname] = propertyvalue for propertyname, propertyvalue in zip( PROPERTIES, properties_values[s] ): results[fmt][cat][fulltestname_split][propertyname] = ( propertyvalue ) else: results[fmt][cat][fulltestname] = {"Result": testresult} for propertyname, propertyvalue in zip(PROPERTIES, properties_values): Loading