summaryrefslogtreecommitdiff
path: root/.ci
diff options
context:
space:
mode:
authorBenjamin Berg <bberg@redhat.com>2022-05-10 10:45:51 +0200
committerBenjamin Berg <bberg@redhat.com>2022-05-10 11:06:18 +0200
commit11fb06d8ae15cbb01a18e5da26d268e5fd3554df (patch)
treee2f4295784acd3baa871a238ca1d36db7ea71a6c /.ci
parentb0f1e28b4205305d633e4a010faf54b464040fe3 (diff)
ci: Permit XML to be invalid to avoid issues with colored logs
Diffstat (limited to '.ci')
-rwxr-xr-x.ci/fail_skipped_tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/.ci/fail_skipped_tests.py b/.ci/fail_skipped_tests.py
index 6349921..2f4c446 100755
--- a/.ci/fail_skipped_tests.py
+++ b/.ci/fail_skipped_tests.py
@@ -16,7 +16,8 @@ def format_title(title):
f"{box['bl']}{hline}{box['br']}",
])
-tree = etree.parse(sys.argv[1])
+# The log coloring causes the XML to be invalid, so set recover=True
+tree = etree.parse(sys.argv[1], etree.XMLParser(recover=True))
for suite in tree.xpath('/testsuites/testsuite'):
skipped = suite.get('skipped')
if int(skipped) != 0: