From 6e001410854792f9bb66a0409a2ac176171b0507 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Mon, 8 Mar 2021 15:54:56 +0000 Subject: 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 --- lib/bb/runqueue.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') 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 -- cgit 1.2.3-korg