Merge pull request #6210 from lrineau/Testsuite-fix__parse-ctest-dashboard-xml.py-GF

CTest Testsuite: resilience to non-UTF8 characters
This commit is contained in:
Laurent Rineau 2022-01-03 16:22:31 +01:00
commit 0b7e4237e8
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ for t in testing.findall('Test'):
if 'encoding' in t_output.attrib and t_output.attrib['encoding'] == 'base64':
t_output_value = base64.standard_b64decode(t_output_value)
if 'compression' in t_output.attrib and t_output.attrib['compression'] == 'gzip':
t_output_value = zlib.decompress(t_output_value).decode("utf-8")
t_output_value = zlib.decompress(t_output_value).decode("utf-8", 'backslashreplace')
tests[tests_ids[t.find('FullName').text]] = \
{ \
"Name": t.find('Name').text, \