[poky] [PATCH 3/3] bitbake/runqueue: show correct task name for setscene task failure
Paul Eggleton
paul.eggleton at linux.intel.com
Mon Feb 28 06:38:07 PST 2011
From: Paul Eggleton <paul.eggleton at linux.intel.com>
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 at linux.intel.com>
---
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 172e591..834b9d5 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/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):
@@ -1483,7 +1483,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)
@@ -1616,6 +1616,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
--
1.7.1
More information about the poky
mailing list