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:
@@ -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]
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user