bbli updated this revision to Diff 278292.
bbli added a comment.
Modified stderr output instead of concatenating the stderr and stdout output
strings.
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/lldbtest.py
lldb/packages/Python/lldbsuite/test_event/build_exception.py
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
@@ -4,8 +4,7 @@
super(BuildError, self).__init__("Error when building test subject")
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>")
+ self.build_error =
called_process_error.lldb_extensions["stdout_content"]
def __str__(self):
return self.format_build_error(self.command, self.build_error)
Index: lldb/packages/Python/lldbsuite/test/lldbtest.py
===================================================================
--- lldb/packages/Python/lldbsuite/test/lldbtest.py
+++ lldb/packages/Python/lldbsuite/test/lldbtest.py
@@ -426,7 +426,7 @@
process = Popen(
shellCommand,
stdout=PIPE,
- stderr=PIPE,
+ stderr=STDOUT,
shell=True,
**kwargs)
pid = process.pid
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
@@ -4,8 +4,7 @@
super(BuildError, self).__init__("Error when building test subject")
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>")
+ self.build_error = called_process_error.lldb_extensions["stdout_content"]
def __str__(self):
return self.format_build_error(self.command, self.build_error)
Index: lldb/packages/Python/lldbsuite/test/lldbtest.py
===================================================================
--- lldb/packages/Python/lldbsuite/test/lldbtest.py
+++ lldb/packages/Python/lldbsuite/test/lldbtest.py
@@ -426,7 +426,7 @@
process = Popen(
shellCommand,
stdout=PIPE,
- stderr=PIPE,
+ stderr=STDOUT,
shell=True,
**kwargs)
pid = process.pid
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits