summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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,