[gnome-continuous-yocto/gnomeostree-3.28-rocko: 424/8267] bitbake: toaster: tests builds Add SSTATE_MISS as a valid condition for tc=833
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 424/8267] bitbake: toaster: tests builds Add SSTATE_MISS as a valid condition for tc=833
- Date: Sat, 16 Dec 2017 20:24:26 +0000 (UTC)
commit 409c940533d532512d9c0d155b110d6c744bcacb
Author: Michael Wood <michael g wood intel com>
Date: Thu May 19 13:59:33 2016 +0100
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>
.../toaster/tests/builds/test_core_image_min.py | 13 ++++++++++---
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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]