[oe-commits] [bitbake] 05/05: knotty: Fix output buffering issues

git at git.openembedded.org git at git.openembedded.org
Tue May 17 14:25:40 UTC 2016


rpurdie pushed a commit to branch master
in repository bitbake.

commit 0e030c4d074c41859608dab5f3ad26b05f56b306
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Mon May 16 22:52:00 2016 +0100

    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.
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/ui/knotty.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/bb/ui/knotty.py b/lib/bb/ui/knotty.py
index 85a71f4..08c872e 100644
--- a/lib/bb/ui/knotty.py
+++ b/lib/bb/ui/knotty.py
@@ -186,6 +186,7 @@ class TerminalFilter(object):
             lines = self.footer_present
             sys.stdout.write(self.curses.tparm(self.cuu, lines))
             sys.stdout.write(self.curses.tparm(self.ed))
+            sys.stdout.flush()
         self.footer_present = False
 
     def updateFooter(self):
@@ -568,6 +569,7 @@ def main(server, eventHandler, params, tf = TerminalFilter):
             main.shutdown = 2
             return_value = 1
     try:
+        termfilter.clearFooter()
         summary = ""
         if taskfailures:
             summary += pluralise("\nSummary: %s task failed:",

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list