Commit 69a0d919 authored by Marek Olšák's avatar Marek Olšák

framework: handle UnicodeDecodeError

This happens due to LLVM printing colored text into stdout/stderr on error.
Reviewed-by: Dylan Baker's avatarDylan Baker <dylan@pnwbakers.com>
parent db1bd785
......@@ -376,6 +376,9 @@ class Test(object):
'Test run time exceeded timeout value ({} seconds)\n'.format(
self.timeout),
'timeout')
# LLVM prints colored text into stdout/stderr on error, which raises:
except UnicodeDecodeError as e:
raise TestRunError("UnicodeDecodeError.\n", 'crash')
# The setter handles the bytes/unicode conversion
self.result.out = out
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment