From 11fb06d8ae15cbb01a18e5da26d268e5fd3554df Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Tue, 10 May 2022 10:45:51 +0200 Subject: [PATCH] ci: Permit XML to be invalid to avoid issues with colored logs --- .ci/fail_skipped_tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: