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:05 +0000 |
commit | 31c4eec40a5523545f9e787681466453f9db8691 (patch) | |
tree | a839b52e9936601c8672951b4750022e6883fb8e /bitbake/lib/bb/runqueue.py | |
parent | 341208aa8764604f681b8c27fad92cc1bb7fec76 (diff) | |
download | poky-31c4eec40a5523545f9e787681466453f9db8691.tar.gz |
bitbake: 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.
(Bitbake rev: 6e001410854792f9bb66a0409a2ac176171b0507)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/runqueue.py')
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index 27d8db5f59..ca71d213d3 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py | |||
@@ -1943,6 +1943,10 @@ class RunQueueExecute: | |||
1943 | logger.error("Scenequeue had holdoff tasks: %s" % pprint.pformat(self.holdoff_tasks)) | 1943 | logger.error("Scenequeue had holdoff tasks: %s" % pprint.pformat(self.holdoff_tasks)) |
1944 | err = True | 1944 | err = True |
1945 | 1945 | ||
1946 | for tid in self.scenequeue_covered.intersection(self.scenequeue_notcovered): | ||
1947 | # No task should end up in both covered and uncovered, that is a bug. | ||
1948 | logger.error("Setscene task %s in both covered and notcovered." % tid) | ||
1949 | |||
1946 | for tid in self.rqdata.runq_setscene_tids: | 1950 | for tid in self.rqdata.runq_setscene_tids: |
1947 | if tid not in self.scenequeue_covered and tid not in self.scenequeue_notcovered: | 1951 | if tid not in self.scenequeue_covered and tid not in self.scenequeue_notcovered: |
1948 | err = True | 1952 | err = True |