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:21 +0000 |
commit | 1cb03844e124b88b98ddfdd4fce47fb545c6fe5e (patch) | |
tree | f8cf20172869ff405aa4937142cb71fe11fe37b5 /bitbake | |
parent | 55554ddc9018a899fbaba6af730cb4a6a29f781c (diff) | |
download | poky-1cb03844e124b88b98ddfdd4fce47fb545c6fe5e.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: da306cd4430a6fcf6b62ed0e6e5310432aa4c4c4)
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 6186a83f80..2bb97b6ebd 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py | |||
@@ -1934,6 +1934,10 @@ class RunQueueExecute: | |||
1934 | logger.error("Scenequeue had holdoff tasks: %s" % pprint.pformat(self.holdoff_tasks)) | 1934 | logger.error("Scenequeue had holdoff tasks: %s" % pprint.pformat(self.holdoff_tasks)) |
1935 | err = True | 1935 | err = True |
1936 | 1936 | ||
1937 | for tid in self.scenequeue_covered.intersection(self.scenequeue_notcovered): | ||
1938 | # No task should end up in both covered and uncovered, that is a bug. | ||
1939 | logger.error("Setscene task %s in both covered and notcovered." % tid) | ||
1940 | |||
1937 | for tid in self.rqdata.runq_setscene_tids: | 1941 | for tid in self.rqdata.runq_setscene_tids: |
1938 | if tid not in self.scenequeue_covered and tid not in self.scenequeue_notcovered: | 1942 | if tid not in self.scenequeue_covered and tid not in self.scenequeue_notcovered: |
1939 | err = True | 1943 | err = True |