summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2014-04-08 16:09:34 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-04-08 18:05:26 +0100
commit8f683bf782d065b81bb7cdb2074839790981d4b7 (patch)
tree5832926af2b2f7d2caa1ab169fbc44c70c30da13 /bitbake/lib/bb/ui
parent327ed0bfceb993c914a7fe03f3cab2351b835de6 (diff)
downloadast2050-yocto-poky-8f683bf782d065b81bb7cdb2074839790981d4b7.zip
ast2050-yocto-poky-8f683bf782d065b81bb7cdb2074839790981d4b7.tar.gz
bitbake: bitbake: knotty: Clear footer before outputting to stderr
With the recent change to split the log output to stdout and stderr, error messages that appeared while the footer was printed got all messed up. This was because the messages to stderr was output _after_ the footer, then clearFooter() tried to remove the footer but removed the error message and parts of the footer. (Bitbake rev: 4fafea4fa69542b491e84463f6eae0d5bf645673) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui')
-rw-r--r--bitbake/lib/bb/ui/knotty.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py
index 80a4b32..41f1ba8 100644
--- a/bitbake/lib/bb/ui/knotty.py
+++ b/bitbake/lib/bb/ui/knotty.py
@@ -133,7 +133,7 @@ class TerminalFilter(object):
cr = (25, 80)
return cr[1]
- def __init__(self, main, helper, console, format):
+ def __init__(self, main, helper, console, errconsole, format):
self.main = main
self.helper = helper
self.cuu = None
@@ -174,6 +174,7 @@ class TerminalFilter(object):
except:
self.cuu = None
console.addFilter(InteractConsoleLogFilter(self, format))
+ errconsole.addFilter(InteractConsoleLogFilter(self, format))
def clearFooter(self):
if self.footer_present:
@@ -309,7 +310,7 @@ def main(server, eventHandler, params, tf = TerminalFilter):
warnings = 0
taskfailures = []
- termfilter = tf(main, helper, console, format)
+ termfilter = tf(main, helper, console, errconsole, format)
atexit.register(termfilter.finish)
while True:
OpenPOWER on IntegriCloud