Commit 9344fdf2 authored by Jan Kiene's avatar Jan Kiene
Browse files

run formatter on parse_xml_report.py

parent c74b0e75
Loading
Loading
Loading
Loading
+16 −12
Original line number Diff line number Diff line
@@ -2,8 +2,6 @@

import argparse
import re
import math
import numpy as np
from xml.etree import ElementTree

"""
@@ -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]

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