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

git at git.openembedded.org git at git.openembedded.org
Mon May 16 22:25:20 UTC 2016


rpurdie pushed a commit to branch master-next
in repository bitbake.

commit 3f0edee9ad0b4792aad3f3d616201d9d96fc2522
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