mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2025-12-20 04:20:04 +01:00
ci: Permit XML to be invalid to avoid issues with colored logs
This commit is contained in:
parent
b0f1e28b42
commit
11fb06d8ae
1 changed files with 2 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue