diff options
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 |