diff options
author | Cristiana Voicu <cristiana.voicu@intel.com> | 2013-11-15 13:34:46 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-11-15 11:41:17 +0000 |
commit | 8ff8d75318ea88ba80c744b471e486901ef6749a (patch) | |
tree | 93cc29b7798d3a45aa513fa9e2325ebda140fc7e /lib | |
parent | ba9fe77e37be31e8246431578902e871dd94515e (diff) | |
download | bitbake-8ff8d75318ea88ba80c744b471e486901ef6749a.tar.gz |
toaster: task with outcome 2 (sstate), should have sstate_result!=0
0 (not applicable) is not a valid sstate_result for tasks with
outcome 2 (sstate), which should return 3 (restored), 2
(failed) or 1 (missed).
Sstate_result for tasks with outcome 2 is equal to the outcome
of _setscene corespondent task.
[YOCTO #5220]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bb/ui/buildinfohelper.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/bb/ui/buildinfohelper.py b/lib/bb/ui/buildinfohelper.py index 7eac73418..c4131aebf 100644 --- a/lib/bb/ui/buildinfohelper.py +++ b/lib/bb/ui/buildinfohelper.py @@ -93,6 +93,12 @@ class ORMWrapper(object): # if we got covered by a setscene task, we're SSTATE if task_object.outcome == Task.OUTCOME_COVERED and 1 == Task.objects.filter(task_executed=True, build = task_object.build, recipe = task_object.recipe, task_name=task_object.task_name+"_setscene").count(): task_object.outcome = Task.OUTCOME_SSTATE + outcome_task_setscene = Task.objects.get(task_executed=True, build = task_object.build, + recipe = task_object.recipe, task_name=task_object.task_name+"_setscene").outcome + if outcome_task_setscene == Task.OUTCOME_SUCCESS: + task_object.sstate_result = Task.SSTATE_RESTORED + elif outcome_task_setscene == Task.OUTCOME_FAILED: + task_object.sstate_result = Task.SSTATE_FAILED # mark down duration if we have a start time if 'start_time' in task_information.keys(): |