diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2011-02-28 14:28:25 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-06-08 11:48:04 +0100 |
commit | 1dfeb84f7d6f758eb9eb8311fa1083c7d736d018 (patch) | |
tree | 0c16a92f1f8881e5950cbf774b7645f1ce00be2e /lib/bb/runqueue.py | |
parent | 32e190e5ccaaa75183dbc410f32b700d39874aca (diff) | |
download | bitbake-contrib-1dfeb84f7d6f758eb9eb8311fa1083c7d736d018.tar.gz |
bitbake/runqueue: show correct task name for setscene task failure
If a setscene task failed previously it was showing an incorrect task
name in the error line. This patch ensures we show the correct name, also
including the "_setscene" suffix.
(From Poky rev: 9d9c68e3536387150e3ce7261f4770576e724dd9)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/runqueue.py')
-rw-r--r-- | lib/bb/runqueue.py | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py index fab17b150..1483bda42 100644 --- a/lib/bb/runqueue.py +++ b/lib/bb/runqueue.py @@ -204,9 +204,9 @@ class RunQueueData: ret.extend([nam]) return ret - def get_user_idstring(self, task): + def get_user_idstring(self, task, task_name_suffix = ""): fn = self.taskData.fn_index[self.runq_fnid[task]] - taskname = self.runq_task[task] + taskname = self.runq_task[task] + task_name_suffix return "%s, %s" % (fn, taskname) def get_task_id(self, fnid, taskname): @@ -1503,7 +1503,7 @@ class RunQueueExecuteScenequeue(RunQueueExecute): def task_fail(self, task, result): self.stats.taskFailed() index = self.rqdata.runq_setscene[task] - bb.event.fire(runQueueTaskFailed(task, self.stats, result, self), self.cfgData) + bb.event.fire(sceneQueueTaskFailed(index, self.stats, result, self), self.cfgData) self.scenequeue_notcovered.add(task) self.scenequeue_updatecounters(task) @@ -1633,6 +1633,14 @@ class runQueueTaskFailed(runQueueEvent): runQueueEvent.__init__(self, task, stats, rq) self.exitcode = exitcode +class sceneQueueTaskFailed(runQueueTaskFailed): + """ + Event notifing a setscene task failed + """ + def __init__(self, task, stats, exitcode, rq): + runQueueTaskFailed.__init__(self, task, stats, exitcode, rq) + self.taskstring = rq.rqdata.get_user_idstring(task, "_setscene") + class runQueueTaskCompleted(runQueueEvent): """ Event notifing a task completed |