summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-03-08 15:54:56 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-03-09 00:02:00 +0000
commit6e001410854792f9bb66a0409a2ac176171b0507 (patch)
treef0e11d3a7bd51ec7b980531ac3937ecf56f5f5c0 /lib
parentf66556bbb38449789ceea2fd105e9f68df7fb660 (diff)
downloadbitbake-6e001410854792f9bb66a0409a2ac176171b0507.tar.gz
runqueue: Add setscene task overlap sanity check
We've seen hard to debug issues where a task ends up in both the covered and notcovered list. Add a sanity check to ensure if this happens in future, we see it in the logs. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/bb/runqueue.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py
index 27d8db5f5..ca71d213d 100644
--- a/lib/bb/runqueue.py
+++ b/lib/bb/runqueue.py
@@ -1943,6 +1943,10 @@ class RunQueueExecute:
logger.error("Scenequeue had holdoff tasks: %s" % pprint.pformat(self.holdoff_tasks))
err = True
+ for tid in self.scenequeue_covered.intersection(self.scenequeue_notcovered):
+ # No task should end up in both covered and uncovered, that is a bug.
+ logger.error("Setscene task %s in both covered and notcovered." % tid)
+
for tid in self.rqdata.runq_setscene_tids:
if tid not in self.scenequeue_covered and tid not in self.scenequeue_notcovered:
err = True