mirror of
https://git.yoctoproject.org/poky
synced 2026-09-13 00:49:33 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
7008a24792
commit
3d0bb418a0
@@ -93,20 +93,22 @@ class Task(models.Model):
|
||||
(CODING_SHELL, 'Shell'),
|
||||
)
|
||||
|
||||
OUTCOME_NA = -1
|
||||
OUTCOME_SUCCESS = 0
|
||||
OUTCOME_COVERED = 1
|
||||
OUTCOME_CACHED = 2
|
||||
OUTCOME_PREBUILT = 3
|
||||
OUTCOME_FAILED = 4
|
||||
OUTCOME_NA = 5
|
||||
OUTCOME_EMPTY = 5
|
||||
|
||||
TASK_OUTCOME = (
|
||||
(OUTCOME_NA, 'Not Available'),
|
||||
(OUTCOME_SUCCESS, 'Succeeded'),
|
||||
(OUTCOME_COVERED, 'Covered'),
|
||||
(OUTCOME_CACHED, 'Cached'),
|
||||
(OUTCOME_PREBUILT, 'Prebuilt'),
|
||||
(OUTCOME_FAILED, 'Failed'),
|
||||
(OUTCOME_NA, 'Not Available'),
|
||||
(OUTCOME_EMPTY, 'Empty'),
|
||||
)
|
||||
|
||||
search_allowed_fields = [ "recipe__name", "task_name" ]
|
||||
@@ -142,6 +144,7 @@ class Task(models.Model):
|
||||
|
||||
class Meta:
|
||||
ordering = ('order', 'recipe' ,)
|
||||
unique_together = ('build', 'recipe', 'task_name', )
|
||||
|
||||
|
||||
class Task_Dependency(models.Model):
|
||||
|
||||
Reference in New Issue
Block a user