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