summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-16 22:52:00 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-17 14:42:56 +0100
commit0e030c4d074c41859608dab5f3ad26b05f56b306 (patch)
tree8411765e6a84c4fa21519cd67bacda4bc19a26d1
parent2a6659fd748e255a02c2f9d047829d6edfe65317 (diff)
downloadbitbake-contrib-0e030c4d074c41859608dab5f3ad26b05f56b306.tar.gz
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@linuxfoundation.org>
-rw-r--r--lib/bb/ui/knotty.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bb/ui/knotty.py b/lib/bb/ui/knotty.py
index 85a71f45e..08c872e39 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:",