When running `make check` on a platform which has older (but still
supported) pytest, e.g. 3.4.2 on EL8, the junit to trs conversion would
fail because the junit format has different structure. Make the junit
XML processing more lenient to support both the older and newer junit
XML formats.
def junit_to_trs(junit_xml):
root = ElementTree.fromstring(junit_xml)
- testcases = root.findall("./testsuite/testcase")
+ testcases = root.findall(".//testcase")
if len(testcases) < 1:
print(":test-result: ERROR convert-junit-to-trs.py")