From ba7e191e434f6a0988e67ff3fa02b7756684c74f Mon Sep 17 00:00:00 2001 From: Vedant Kumar Date: Mon, 26 Aug 2019 23:24:45 +0000 Subject: [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 --- lldb/packages/Python/lldbsuite/test_event/build_exception.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/packages/Python/lldbsuite/test_event/build_exception.py') 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")) -- cgit v1.2.3