summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2016-05-19 13:59:33 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-20 10:09:03 +0100
commit409c940533d532512d9c0d155b110d6c744bcacb (patch)
treebd4f9db3385514f3f9a7b40810c0a20bb0d48222 /bitbake
parent0664a89ef02e2ec98892e4d9227fca3d4fadd40c (diff)
downloadpoky-409c940533d532512d9c0d155b110d6c744bcacb.tar.gz
bitbake: toaster: tests builds Add SSTATE_MISS as a valid condition for tc=833
Task.SSTATE_NA and Task.SSTATE_MISS are both valid conditions for the condition that a Task.OUTCOME_COVERED and Task.OUTCOME_PREBUILT. (Bitbake rev: acac9bf660ac5939beb64d7b8d55541dea1c7b4e) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/toaster/tests/builds/test_core_image_min.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/bitbake/lib/toaster/tests/builds/test_core_image_min.py b/bitbake/lib/toaster/tests/builds/test_core_image_min.py
index 87d29c72aa..dec0bfa7f2 100644
--- a/bitbake/lib/toaster/tests/builds/test_core_image_min.py
+++ b/bitbake/lib/toaster/tests/builds/test_core_image_min.py
@@ -115,12 +115,19 @@ class BuildCoreImageMinimal(BuildTest):
115 # be 0 (SSTATE_NA) - tc=833 115 # be 0 (SSTATE_NA) - tc=833
116 def test_Task_If_Outcome_1_3_Sstate_Result_Must_Be_0(self): 116 def test_Task_If_Outcome_1_3_Sstate_Result_Must_Be_0(self):
117 tasks = Task.objects.filter( 117 tasks = Task.objects.filter(
118 outcome__in=(1, 3)).values('id', 'sstate_result') 118 outcome__in=(Task.OUTCOME_COVERED,
119 Task.OUTCOME_PREBUILT)).values('id',
120 'task_name',
121 'sstate_result')
119 cnt_err = [] 122 cnt_err = []
120 123
121 for task in tasks: 124 for task in tasks:
122 if (task['sstate_result'] != 0): 125 if (task['sstate_result'] != Task.SSTATE_NA and
123 cnt_err.append(task['id']) 126 task['sstate_result'] != Task.SSTATE_MISS):
127 cnt_err.append({'id': task['id'],
128 'name': task['task_name'],
129 'sstate_result': task['sstate_result'],
130 })
124 131
125 self.assertEqual(len(cnt_err), 132 self.assertEqual(len(cnt_err),
126 0, 133 0,