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-03-15 13:18:47 +0000 |
commit | 9d9c68e3536387150e3ce7261f4770576e724dd9 (patch) | |
tree | 4c52bcf20929fef06594d41e2763a90bee8f8517 /bitbake/lib | |
parent | 4c695dbcd12b295a4215422622006f1f58469297 (diff) | |
download | poky-9d9c68e3536387150e3ce7261f4770576e724dd9.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.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index d7d67fd508..3db083b261 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py | |||
@@ -204,9 +204,9 @@ class RunQueueData: | |||
204 | ret.extend([nam]) | 204 | ret.extend([nam]) |
205 | return ret | 205 | return ret |
206 | 206 | ||
207 | def get_user_idstring(self, task): | 207 | def get_user_idstring(self, task, task_name_suffix = ""): |
208 | fn = self.taskData.fn_index[self.runq_fnid[task]] | 208 | fn = self.taskData.fn_index[self.runq_fnid[task]] |
209 | taskname = self.runq_task[task] | 209 | taskname = self.runq_task[task] + task_name_suffix |
210 | return "%s, %s" % (fn, taskname) | 210 | return "%s, %s" % (fn, taskname) |
211 | 211 | ||
212 | def get_task_id(self, fnid, taskname): | 212 | def get_task_id(self, fnid, taskname): |
@@ -1494,7 +1494,7 @@ class RunQueueExecuteScenequeue(RunQueueExecute): | |||
1494 | def task_fail(self, task, result): | 1494 | def task_fail(self, task, result): |
1495 | self.stats.taskFailed() | 1495 | self.stats.taskFailed() |
1496 | index = self.rqdata.runq_setscene[task] | 1496 | index = self.rqdata.runq_setscene[task] |
1497 | bb.event.fire(runQueueTaskFailed(task, self.stats, result, self), self.cfgData) | 1497 | bb.event.fire(sceneQueueTaskFailed(index, self.stats, result, self), self.cfgData) |
1498 | self.scenequeue_notcovered.add(task) | 1498 | self.scenequeue_notcovered.add(task) |
1499 | self.scenequeue_updatecounters(task) | 1499 | self.scenequeue_updatecounters(task) |
1500 | 1500 | ||
@@ -1627,6 +1627,14 @@ class runQueueTaskFailed(runQueueEvent): | |||
1627 | runQueueEvent.__init__(self, task, stats, rq) | 1627 | runQueueEvent.__init__(self, task, stats, rq) |
1628 | self.exitcode = exitcode | 1628 | self.exitcode = exitcode |
1629 | 1629 | ||
1630 | class sceneQueueTaskFailed(runQueueTaskFailed): | ||
1631 | """ | ||
1632 | Event notifing a setscene task failed | ||
1633 | """ | ||
1634 | def __init__(self, task, stats, exitcode, rq): | ||
1635 | runQueueTaskFailed.__init__(self, task, stats, exitcode, rq) | ||
1636 | self.taskstring = rq.rqdata.get_user_idstring(task, "_setscene") | ||
1637 | |||
1630 | class runQueueTaskCompleted(runQueueEvent): | 1638 | class runQueueTaskCompleted(runQueueEvent): |
1631 | """ | 1639 | """ |
1632 | Event notifing a task completed | 1640 | Event notifing a task completed |