summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/orm
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2014-02-13 13:12:39 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-09 12:23:57 -0700
commit3d0bb418a08aa96dd57c15b695385775ce3bddc8 (patch)
treef39bb8adbf421f0296b4d97434bd105f01e88a8a /bitbake/lib/toaster/orm
parent7008a24792704b8e757c583663636addf49f397d (diff)
downloadpoky-3d0bb418a08aa96dd57c15b695385775ce3bddc8.tar.gz
bitbake: toasterui: adding new task outcome empty
In order to separate tasks with invalid states from the no exec tasks, we add a new value OUTCOME_EMPTY for the tasks. OUTCOME_EMPTY has the same value as OUTCOME_NA as to maintain compatibility with already existing builds. New value for OUTCOME_NA can be used to detect tasks with invalid states, i.e. it should never appear after finishing a build. Fixing noexec tasks outcomes. [YOCTO #5763] (Bitbake rev: 475643ad78796835bf2e731b9d0fa5794ec80dd1) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/orm')
-rw-r--r--bitbake/lib/toaster/orm/models.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py
index f96da9c339..af44d86ff3 100644
--- a/bitbake/lib/toaster/orm/models.py
+++ b/bitbake/lib/toaster/orm/models.py
@@ -93,20 +93,22 @@ class Task(models.Model):
93 (CODING_SHELL, 'Shell'), 93 (CODING_SHELL, 'Shell'),
94 ) 94 )
95 95
96 OUTCOME_NA = -1
96 OUTCOME_SUCCESS = 0 97 OUTCOME_SUCCESS = 0
97 OUTCOME_COVERED = 1 98 OUTCOME_COVERED = 1
98 OUTCOME_CACHED = 2 99 OUTCOME_CACHED = 2
99 OUTCOME_PREBUILT = 3 100 OUTCOME_PREBUILT = 3
100 OUTCOME_FAILED = 4 101 OUTCOME_FAILED = 4
101 OUTCOME_NA = 5 102 OUTCOME_EMPTY = 5
102 103
103 TASK_OUTCOME = ( 104 TASK_OUTCOME = (
105 (OUTCOME_NA, 'Not Available'),
104 (OUTCOME_SUCCESS, 'Succeeded'), 106 (OUTCOME_SUCCESS, 'Succeeded'),
105 (OUTCOME_COVERED, 'Covered'), 107 (OUTCOME_COVERED, 'Covered'),
106 (OUTCOME_CACHED, 'Cached'), 108 (OUTCOME_CACHED, 'Cached'),
107 (OUTCOME_PREBUILT, 'Prebuilt'), 109 (OUTCOME_PREBUILT, 'Prebuilt'),
108 (OUTCOME_FAILED, 'Failed'), 110 (OUTCOME_FAILED, 'Failed'),
109 (OUTCOME_NA, 'Not Available'), 111 (OUTCOME_EMPTY, 'Empty'),
110 ) 112 )
111 113
112 search_allowed_fields = [ "recipe__name", "task_name" ] 114 search_allowed_fields = [ "recipe__name", "task_name" ]
@@ -142,6 +144,7 @@ class Task(models.Model):
142 144
143 class Meta: 145 class Meta:
144 ordering = ('order', 'recipe' ,) 146 ordering = ('order', 'recipe' ,)
147 unique_together = ('build', 'recipe', 'task_name', )
145 148
146 149
147class Task_Dependency(models.Model): 150class Task_Dependency(models.Model):