diff options
-rw-r--r-- | framework/test/base.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/framework/test/base.py b/framework/test/base.py index 134b87245..f187c0210 100644 --- a/framework/test/base.py +++ b/framework/test/base.py @@ -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 |