summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/terminal.py
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2022-04-25 23:05:19 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-05-04 13:07:33 +0100
commitf8a450a39d49474d300f19c6ed39a8b1eda53cc3 (patch)
tree0b102193c99aa4a24e82dc9d8baa7306603df488 /meta/lib/oe/terminal.py
parentc99977a5170036fce2e16bbdc077a9b801c2b9fd (diff)
downloadpoky-f8a450a39d49474d300f19c6ed39a8b1eda53cc3.tar.gz
terminal.py: Restore error output from Terminal
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. (From OE-Core rev: f8f8e2e159a5ac03f619e6d0882011445e6a2545) 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> (cherry picked from commit 116d0bb07ba044cf8847bf3d5c3996ad7e58b7ae) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/terminal.py')
-rw-r--r--meta/lib/oe/terminal.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/lib/oe/terminal.py b/meta/lib/oe/terminal.py
index 53186c4a3e..de8dcebf94 100644
--- a/meta/lib/oe/terminal.py
+++ b/meta/lib/oe/terminal.py
@@ -30,9 +30,10 @@ class Registry(oe.classutils.ClassRegistry):
30 30
31class Terminal(Popen, metaclass=Registry): 31class Terminal(Popen, metaclass=Registry):
32 def __init__(self, sh_cmd, title=None, env=None, d=None): 32 def __init__(self, sh_cmd, title=None, env=None, d=None):
33 from subprocess import STDOUT
33 fmt_sh_cmd = self.format_command(sh_cmd, title) 34 fmt_sh_cmd = self.format_command(sh_cmd, title)
34 try: 35 try:
35 Popen.__init__(self, fmt_sh_cmd, env=env) 36 Popen.__init__(self, fmt_sh_cmd, env=env, stderr=STDOUT)
36 except OSError as exc: 37 except OSError as exc:
37 import errno 38 import errno
38 if exc.errno == errno.ENOENT: 39 if exc.errno == errno.ENOENT: