]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
terminal.py: Restore error output from Terminal
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Mon, 25 Apr 2022 21:05:19 +0000 (23:05 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 26 Apr 2022 17:24:37 +0000 (18:24 +0100)
In bitbake commit 1ecc1d94 (process: Do not mix stderr with stdout),
bb.process.Popen() was changed to no longer combine stdout and stderr by
default. However, the Terminal class was not updated to reflect this and
subsequently only output stdout in case of failures.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/terminal.py

index 53186c4a3ed7eb906d65d94ab4e3a36e46467046..de8dcebf94a31e0fed2e3915bb86429cee6392f6 100644 (file)
@@ -30,9 +30,10 @@ class Registry(oe.classutils.ClassRegistry):
 
 class Terminal(Popen, metaclass=Registry):
     def __init__(self, sh_cmd, title=None, env=None, d=None):
+        from subprocess import STDOUT
         fmt_sh_cmd = self.format_command(sh_cmd, title)
         try:
-            Popen.__init__(self, fmt_sh_cmd, env=env)
+            Popen.__init__(self, fmt_sh_cmd, env=env, stderr=STDOUT)
         except OSError as exc:
             import errno
             if exc.errno == errno.ENOENT: