summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorCristiana Voicu <cristiana.voicu@intel.com>2013-11-15 13:34:46 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-15 11:48:53 +0000
commit51084379d43a6b6bbf828d2adaaccf803e9da081 (patch)
treee49f6fe61b2e530471219bf2995049322129ce94 /bitbake
parent6f0125054736eb4554a2760fe9f739c1c0e2f512 (diff)
downloadpoky-51084379d43a6b6bbf828d2adaaccf803e9da081.tar.gz
bitbake: 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] (Bitbake rev: 8ff8d75318ea88ba80c744b471e486901ef6749a) Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/ui/buildinfohelper.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py
index 7eac734183..c4131aebf0 100644
--- a/bitbake/lib/bb/ui/buildinfohelper.py
+++ b/bitbake/lib/bb/ui/buildinfohelper.py
@@ -93,6 +93,12 @@ class ORMWrapper(object):
93 # if we got covered by a setscene task, we're SSTATE 93 # if we got covered by a setscene task, we're SSTATE
94 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(): 94 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():
95 task_object.outcome = Task.OUTCOME_SSTATE 95 task_object.outcome = Task.OUTCOME_SSTATE
96 outcome_task_setscene = Task.objects.get(task_executed=True, build = task_object.build,
97 recipe = task_object.recipe, task_name=task_object.task_name+"_setscene").outcome
98 if outcome_task_setscene == Task.OUTCOME_SUCCESS:
99 task_object.sstate_result = Task.SSTATE_RESTORED
100 elif outcome_task_setscene == Task.OUTCOME_FAILED:
101 task_object.sstate_result = Task.SSTATE_FAILED
96 102
97 # mark down duration if we have a start time 103 # mark down duration if we have a start time
98 if 'start_time' in task_information.keys(): 104 if 'start_time' in task_information.keys():