[Lldb-commits] [PATCH] D83425: [lldb] add printing of stdout compile errors to lldbsuite

Benson Li via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Jul 8 16:04:09 PDT 2020


bbli updated this revision to Diff 276590.
bbli added a comment.

Changed back to original function signature, as this method gets called once outside the class.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D83425/new/

https://reviews.llvm.org/D83425

Files:
  lldb/packages/Python/lldbsuite/test_event/build_exception.py
  lldb/packages/Python/lldbsuite/test_event/formatter/xunit.py


Index: lldb/packages/Python/lldbsuite/test_event/formatter/xunit.py
===================================================================
--- lldb/packages/Python/lldbsuite/test_event/formatter/xunit.py
+++ lldb/packages/Python/lldbsuite/test_event/formatter/xunit.py
@@ -258,7 +258,7 @@
         build_issue_description = self._replace_invalid_xml(
             BuildError.format_build_error(
                 test_event.get("build_command", "<None>"),
-                test_event.get("build_error", "<None>")))
+                test_event.get("build_error", "<None>").decode("utf-8")))
 
         result = self._common_add_testcase_entry(
             test_event,
Index: lldb/packages/Python/lldbsuite/test_event/build_exception.py
===================================================================
--- lldb/packages/Python/lldbsuite/test_event/build_exception.py
+++ lldb/packages/Python/lldbsuite/test_event/build_exception.py
@@ -5,7 +5,7 @@
         self.command = called_process_error.lldb_extensions.get(
             "command", "<command unavailable>")
         self.build_error = called_process_error.lldb_extensions.get(
-            "stderr_content", "<error output unavailable>")
+            "stderr_content", "<error output unavailable>").decode("utf-8") + called_process_error.lldb_extensions.get("stdout_content","<stdout output unavailable>").decode("utf-8")
 
     def __str__(self):
         return self.format_build_error(self.command, self.build_error)
@@ -13,4 +13,4 @@
     @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.decode("utf-8"))
+            command, command_output)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83425.276590.patch
Type: text/x-patch
Size: 1768 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20200708/e90861c7/attachment.bin>


More information about the lldb-commits mailing list