summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/knotty.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-09-16 10:31:40 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-09-17 07:26:23 +0100
commit6b520611235673c9223609676a70d3cf5f6d4744 (patch)
treefc2b797813b89a763683b85e9f3d0c5762d501fe /bitbake/lib/bb/ui/knotty.py
parent4437754142f6d0e8f3cf9ffbb51c61321b8c5600 (diff)
downloadpoky-6b520611235673c9223609676a70d3cf5f6d4744.tar.gz
bitbake: runqueue/knotty: Improve UI handling of setscene task counting
The recent fixes to merge setscene and normal task accounting in runqueue fixed some display issues but broke the task numbering of setscene tasks. Add new accounting methods to the stats structure specifically designed for setscene. This accounts for the fact that setscene tasks can rerun multiple times in the build. Then use the new data in the UI to correctly display the numbers the user wants to see to understand progress. (Bitbake rev: ed7e2da88bf4b7bfc7ebfc12b9bd6c0fb7d8c1aa) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/knotty.py')
-rw-r--r--bitbake/lib/bb/ui/knotty.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py
index 65ff2727dc..8df745d130 100644
--- a/bitbake/lib/bb/ui/knotty.py
+++ b/bitbake/lib/bb/ui/knotty.py
@@ -753,7 +753,7 @@ def main(server, eventHandler, params, tf = TerminalFilter):
753 continue 753 continue
754 754
755 if isinstance(event, bb.runqueue.sceneQueueTaskStarted): 755 if isinstance(event, bb.runqueue.sceneQueueTaskStarted):
756 logger.info("Running setscene task %d of %d (%s)" % (event.stats.completed + event.stats.active + event.stats.failed + 1, event.stats.total, event.taskstring)) 756 logger.info("Running setscene task %d of %d (%s)" % (event.stats.setscene_covered + event.stats.setscene_active + event.stats.setscene_notcovered + 1, event.stats.setscene_total, event.taskstring))
757 continue 757 continue
758 758
759 if isinstance(event, bb.runqueue.runQueueTaskStarted): 759 if isinstance(event, bb.runqueue.runQueueTaskStarted):