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-24 14:36:17 +0000 |
commit | 0ddc879d61bb3e8b38e1181f4e4392b6c2122c2e (patch) | |
tree | 506f4c5766e74f62d48ece29401293c68bf70239 /bitbake | |
parent | b1cfaaa574a1bfec1de0d85a5b5df58ad9511a54 (diff) | |
download | poky-0ddc879d61bb3e8b38e1181f4e4392b6c2122c2e.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: 947c2ad65e4c59d01c603f767f11f9aa86b69264)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 6e001410854792f9bb66a0409a2ac176171b0507)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-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 e22ca72ced..acc128ec46 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py | |||
@@ -1942,6 +1942,10 @@ class RunQueueExecute: | |||
1942 | logger.error("Scenequeue had holdoff tasks: %s" % pprint.pformat(self.holdoff_tasks)) | 1942 | logger.error("Scenequeue had holdoff tasks: %s" % pprint.pformat(self.holdoff_tasks)) |
1943 | err = True | 1943 | err = True |
1944 | 1944 | ||
1945 | for tid in self.scenequeue_covered.intersection(self.scenequeue_notcovered): | ||
1946 | # No task should end up in both covered and uncovered, that is a bug. | ||
1947 | logger.error("Setscene task %s in both covered and notcovered." % tid) | ||
1948 | |||
1945 | for tid in self.rqdata.runq_setscene_tids: | 1949 | for tid in self.rqdata.runq_setscene_tids: |
1946 | if tid not in self.scenequeue_covered and tid not in self.scenequeue_notcovered: | 1950 | if tid not in self.scenequeue_covered and tid not in self.scenequeue_notcovered: |
1947 | err = True | 1951 | err = True |