[bitbake-devel,5/5] toasterui: mark failed sceneQueue tasks as failed

Submitted by Alexandru DAMIAN on Nov. 14, 2013, 10:53 a.m.

Details

Message ID 1384426381-7869-6-git-send-email-alexandru.damian@intel.com
State New
Headers show

Commit Message

Alexandru DAMIAN Nov. 14, 2013, 10:53 a.m.
From: Alexandru DAMIAN <alexandru.damian@intel.com>

This patch addresses an issue where a failed sceneQueue task
entry was not updated on the Fail event. As a result, it
always showed the task as not-available.

    [YOCTO #5216]

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
---
 lib/bb/ui/buildinfohelper.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/lib/bb/ui/buildinfohelper.py b/lib/bb/ui/buildinfohelper.py
index 92d6bbe..38e89ec 100644
--- a/lib/bb/ui/buildinfohelper.py
+++ b/lib/bb/ui/buildinfohelper.py
@@ -537,7 +537,7 @@  class BuildInfoHelper(object):
             task_information['disk_io'] = task_build_stats['disk_io']
             del self.internal_state[identifier]
 
-        if isinstance(event, bb.runqueue.runQueueTaskFailed):
+        if isinstance(event, (bb.runqueue.runQueueTaskFailed, bb.runCommand.sceneQueueTaskFailed)):
             task_information['outcome'] = Task.OUTCOME_FAILED
             del self.internal_state[identifier]