[Lldb-commits] [lldb] r369987 - [build_exception] Decode build failure messages
Vedant Kumar via lldb-commits
lldb-commits at lists.llvm.org
Mon Aug 26 16:24:45 PDT 2019
Author: vedantk
Date: Mon Aug 26 16:24:45 2019
New Revision: 369987
URL: http://llvm.org/viewvc/llvm-project?rev=369987&view=rev
Log:
[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.
Modified:
lldb/trunk/packages/Python/lldbsuite/test_event/build_exception.py
Modified: lldb/trunk/packages/Python/lldbsuite/test_event/build_exception.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test_event/build_exception.py?rev=369987&r1=369986&r2=369987&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test_event/build_exception.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test_event/build_exception.py Mon Aug 26 16:24:45 2019
@@ -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"))
More information about the lldb-commits
mailing list