Skip to content

Commit

Permalink
tools: allow test tap output to include unicode characters
Browse files Browse the repository at this point in the history
  • Loading branch information
MoLow committed Mar 20, 2023
1 parent bc0aa35 commit 2b47470
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/test.py
Expand Up @@ -371,7 +371,7 @@ def HasRun(self, output):
status_line = status_line + ' # TODO : Fix flaky test'
self.severity = 'flaky'

logger.info(status_line)
logger.info(status_line.encode('utf-8'))

if output.HasCrashed():
self.severity = 'crashed'
Expand All @@ -383,12 +383,12 @@ def HasRun(self, output):
skip = skip_regex.search(output.output.stdout)
if skip:
logger.info(
'ok %i %s # skip %s' % (self._done, command, skip.group(1)))
('ok %i %s # skip %s' % (self._done, command, skip.group(1))).encode('utf-8'))
else:
status_line = 'ok %i %s' % (self._done, command)
if FLAKY in output.test.outcomes:
status_line = status_line + ' # TODO : Fix flaky test'
logger.info(status_line)
logger.info(status_line.encode('utf-8'))

if output.diagnostic:
self.severity = 'ok'
Expand Down

0 comments on commit 2b47470

Please sign in to comment.