summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2016-05-04 16:46:22 (GMT)
committerElliot Smith <elliot.smith@intel.com>2016-05-19 10:45:08 (GMT)
commit61a960c7be77aaab7bc33e4a5a24408f8e89c4a5 (patch)
tree6a56e4b215d673afdcb8851100938a8e1f329485
parent261c1a1f0330f5e3559ac064f298fef6d66db90a (diff)
downloadpoky-contrib-elliot/submit/michael/toaster/build-tests.zip
poky-contrib-elliot/submit/michael/toaster/build-tests.tar.gz
poky-contrib-elliot/submit/michael/toaster/build-tests.tar.bz2
toaster: tests builds Add SSTATE_MISS as a valid condition for tc=833elliot/submit/michael/toaster/build-tests
Task.SSTATE_NA and Task.SSTATE_MISS are both valid conditions for the condition that a Task.OUTCOME_COVERED and Task.OUTCOME_PREBUILT. Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Elliot Smith <elliot.smith@intel.com>
-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 87d29c7..dec0bfa 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):
# be 0 (SSTATE_NA) - tc=833
def test_Task_If_Outcome_1_3_Sstate_Result_Must_Be_0(self):
tasks = Task.objects.filter(
- outcome__in=(1, 3)).values('id', 'sstate_result')
+ outcome__in=(Task.OUTCOME_COVERED,
+ Task.OUTCOME_PREBUILT)).values('id',
+ 'task_name',
+ 'sstate_result')
cnt_err = []
for task in tasks:
- if (task['sstate_result'] != 0):
- cnt_err.append(task['id'])
+ if (task['sstate_result'] != Task.SSTATE_NA and
+ task['sstate_result'] != Task.SSTATE_MISS):
+ cnt_err.append({'id': task['id'],
+ 'name': task['task_name'],
+ 'sstate_result': task['sstate_result'],
+ })
self.assertEqual(len(cnt_err),
0,