diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-16 22:52:00 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-17 14:43:31 +0100 |
commit | 07eebc66898b423ea2e04e96c57d3b2b5eabbb26 (patch) | |
tree | 33525270b9fd1baea9a40fe5f87ff8200544a770 /bitbake/lib/bb/ui | |
parent | 62384f5467fe6111344cbd527e3424f2acabf560 (diff) | |
download | poky-07eebc66898b423ea2e04e96c57d3b2b5eabbb26.tar.gz |
bitbake: knotty: Fix output buffering issues
We need to flush the footer removal, else it may not be outputted until
the buffer is flushed as part of StreamHandler and this would lead to
it removing the ERROR output just printed which is extremely confusing.
Also ensure the footer is cleared before printing a summary as in
some cases it wasn't being removed, also leading to user confusion.
(Bitbake rev: 0e030c4d074c41859608dab5f3ad26b05f56b306)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui')
-rw-r--r-- | bitbake/lib/bb/ui/knotty.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py index 85a71f45ec..08c872e397 100644 --- a/bitbake/lib/bb/ui/knotty.py +++ b/bitbake/lib/bb/ui/knotty.py | |||
@@ -186,6 +186,7 @@ class TerminalFilter(object): | |||
186 | lines = self.footer_present | 186 | lines = self.footer_present |
187 | sys.stdout.write(self.curses.tparm(self.cuu, lines)) | 187 | sys.stdout.write(self.curses.tparm(self.cuu, lines)) |
188 | sys.stdout.write(self.curses.tparm(self.ed)) | 188 | sys.stdout.write(self.curses.tparm(self.ed)) |
189 | sys.stdout.flush() | ||
189 | self.footer_present = False | 190 | self.footer_present = False |
190 | 191 | ||
191 | def updateFooter(self): | 192 | def updateFooter(self): |
@@ -568,6 +569,7 @@ def main(server, eventHandler, params, tf = TerminalFilter): | |||
568 | main.shutdown = 2 | 569 | main.shutdown = 2 |
569 | return_value = 1 | 570 | return_value = 1 |
570 | try: | 571 | try: |
572 | termfilter.clearFooter() | ||
571 | summary = "" | 573 | summary = "" |
572 | if taskfailures: | 574 | if taskfailures: |
573 | summary += pluralise("\nSummary: %s task failed:", | 575 | summary += pluralise("\nSummary: %s task failed:", |