Skip to content

Commit

Permalink
Update to fix junit results on python3
Browse files Browse the repository at this point in the history
The same result that was put in place for regular xml results is also
needed for the junit results when running with python3.
  • Loading branch information
p3ck committed Sep 28, 2023
1 parent c195299 commit 821fe7f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Client/src/bkr/client/commands/cmd_job_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ def run(self, *args, **kwargs):
self.parser.error('JUnit XML format is only available for jobs')
response = requests_session.get('jobs/%s.junit.xml' % id)
response.raise_for_status()
print(response.content)
str_xml = response.content
if six.PY3:
str_xml = str_xml.decode('utf-8')
print(str_xml)
else:
raise RuntimeError('Format %s not implemented' % format)

0 comments on commit 821fe7f

Please sign in to comment.