diff --git a/bin/tests/system/convert-junit-to-trs.py b/bin/tests/system/convert-junit-to-trs.py index 7d490fa550..b3d44b5567 100755 --- a/bin/tests/system/convert-junit-to-trs.py +++ b/bin/tests/system/convert-junit-to-trs.py @@ -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"