1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-30 12:29:55 +00:00

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>
This commit is contained in:
Richard Purdie
2016-05-16 22:52:00 +01:00
parent 62384f5467
commit 07eebc6689
+2
View File
@@ -186,6 +186,7 @@ class TerminalFilter(object):
lines = self.footer_present lines = self.footer_present
sys.stdout.write(self.curses.tparm(self.cuu, lines)) sys.stdout.write(self.curses.tparm(self.cuu, lines))
sys.stdout.write(self.curses.tparm(self.ed)) sys.stdout.write(self.curses.tparm(self.ed))
sys.stdout.flush()
self.footer_present = False self.footer_present = False
def updateFooter(self): def updateFooter(self):
@@ -568,6 +569,7 @@ def main(server, eventHandler, params, tf = TerminalFilter):
main.shutdown = 2 main.shutdown = 2
return_value = 1 return_value = 1
try: try:
termfilter.clearFooter()
summary = "" summary = ""
if taskfailures: if taskfailures:
summary += pluralise("\nSummary: %s task failed:", summary += pluralise("\nSummary: %s task failed:",