Merge branch '4560-pytest-junit-xml-compat-9.18' into 'bind-9.18'

[9.18] Support older junit XML format in test result processing

See merge request isc-projects/bind9!8709
This commit is contained in:
Tom Krizek
2024-02-08 14:28:04 +00:00
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -1,3 +1,7 @@
6340. [test] Fix incorrectly reported errors when running tests
with `make test` on platforms with older pytest.
[GL #4560]
6338. [func] Optimize slabheader placement, so the infrastructure
records are put in the beginning of the slabheader
linked list. [GL !8675]
+1 -1
View File
@@ -13,7 +13,7 @@ from xml.etree import ElementTree
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")