diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-03-08 15:54:56 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-03-09 00:02:00 +0000 |
commit | 6e001410854792f9bb66a0409a2ac176171b0507 (patch) | |
tree | f0e11d3a7bd51ec7b980531ac3937ecf56f5f5c0 | |
parent | f66556bbb38449789ceea2fd105e9f68df7fb660 (diff) | |
download | bitbake-contrib-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>
-rw-r--r-- | lib/bb/runqueue.py | 4 |
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 |