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")) _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits