mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 12:32:04 -04:00
Fix pytest junitxml output processing for make check
Not every element tagged `skipped` in the JUnitXML tree has to contain the `type` attribute. An example of that is a test that results in xpass. This has been verified with pytest version 7.4.2 and prior.
This commit is contained in:
parent
1a724685a0
commit
ba25ecd2d2
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ def junit_to_trs(junit_xml):
|
|||
res = "ERROR"
|
||||
has_error = True
|
||||
elif node.tag == "skipped":
|
||||
if node.attrib["type"] == "pytest.xfail":
|
||||
if node.attrib.get("type") == "pytest.xfail":
|
||||
res = "XFAIL"
|
||||
else:
|
||||
res = "SKIP"
|
||||
|
|
|
|||
Loading…
Reference in a new issue