[1.52,1/4] process: Do not mix stderr with stdout

Message ID eef2355331e7e03b2c7615695694c5ba9877fb36.1640910042.git.anuj.mittal@intel.com
State Accepted, archived
Commit eef2355331e7e03b2c7615695694c5ba9877fb36
Headers show
Series [1.52,1/4] process: Do not mix stderr with stdout | expand

Commit Message

Mittal, Anuj Dec. 31, 2021, 12:21 a.m. UTC
From: Anton Mikanovich <amikan@ilbers.de>

We should not redirect stderr to stdout if we need to get separated
stdout and stderr contents from Popen.communicate() later.

Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 1ecc1d9424877df89fcda2f23c306998998a65ff)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
---
 lib/bb/process.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/lib/bb/process.py b/lib/bb/process.py
index d5a1775f..af5d804a 100644
--- a/lib/bb/process.py
+++ b/lib/bb/process.py
@@ -60,7 +60,7 @@  class Popen(subprocess.Popen):
         "close_fds": True,
         "preexec_fn": subprocess_setup,
         "stdout": subprocess.PIPE,
-        "stderr": subprocess.STDOUT,
+        "stderr": subprocess.PIPE,
         "stdin": subprocess.PIPE,
         "shell": False,
     }