[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
This commit is contained in:
Vedant Kumar 2019-08-26 23:24:45 +00:00
parent 2abca4f06c
commit ba7e191e43
1 changed files with 1 additions and 1 deletions

View File

@ -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"))