summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2019-08-26 23:24:45 +0000
committerVedant Kumar <vsk@apple.com>2019-08-26 23:24:45 +0000
commitba7e191e434f6a0988e67ff3fa02b7756684c74f (patch)
tree7f5aeaad68e5b1dd623e4cdaacd177f126a88726 /lldb/packages/Python/lldbsuite
parent2abca4f06cfeb8d1a93ff5a19b90a116f7a8b62c (diff)
downloadbcm5719-llvm-ba7e191e434f6a0988e67ff3fa02b7756684c74f.tar.gz
bcm5719-llvm-ba7e191e434f6a0988e67ff3fa02b7756684c74f.zip
[build_exception] Decode build failure messages
This is so that the test harness pretty-prints build error messages in trace mode, instead of dumping a raw python bytes object. llvm-svn: 369987
Diffstat (limited to 'lldb/packages/Python/lldbsuite')
-rw-r--r--lldb/packages/Python/lldbsuite/test_event/build_exception.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test_event/build_exception.py b/lldb/packages/Python/lldbsuite/test_event/build_exception.py
index 5b00b92d473..3347d9fd7cf 100644
--- a/lldb/packages/Python/lldbsuite/test_event/build_exception.py
+++ b/lldb/packages/Python/lldbsuite/test_event/build_exception.py
@@ -13,4 +13,4 @@ class BuildError(Exception):
@staticmethod
def format_build_error(command, command_output):
return "Error when building test subject.\n\nBuild Command:\n{}\n\nBuild Command Output:\n{}".format(
- command, command_output)
+ command, command_output.decode("utf-8"))
OpenPOWER on IntegriCloud