mirror of
https://git.yoctoproject.org/poky
synced 2026-09-13 09:49:32 +02:00
bitbake: toaster: View detailed information about a task
Information about a task is displayed depending on it's execution status and outcome status. Edited to iterate through all possible entries for related setscene tasks. [YOCTO #4282] (Bitbake rev: 62f502b1237d4060df6be1ee4f4865db5fa39a6a) Signed-off-by: Ravi Chintakunta <ravi.chintakunta@timesys.com> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> 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
2bd19cd026
commit
31d4bf8484
@@ -111,6 +111,15 @@ class Task(models.Model):
|
||||
(OUTCOME_EMPTY, 'Empty'),
|
||||
)
|
||||
|
||||
TASK_OUTCOME_HELP = {
|
||||
OUTCOME_SUCCESS:'This task completed successfully',
|
||||
OUTCOME_COVERED:'This task did not run because its output is provided by another task',
|
||||
OUTCOME_CACHED:'This task restored output from the sstate-cache directory or mirrors',
|
||||
OUTCOME_PREBUILT:'This task did not run because its outcome was reused from a previous build',
|
||||
OUTCOME_FAILED:'This task did not complete',
|
||||
OUTCOME_NA:''
|
||||
}
|
||||
|
||||
search_allowed_fields = [ "recipe__name", "recipe__version", "task_name", "logfile" ]
|
||||
|
||||
objects = TaskManager()
|
||||
@@ -118,6 +127,9 @@ class Task(models.Model):
|
||||
def get_related_setscene(self):
|
||||
return Task.objects.related_setscene(self)
|
||||
|
||||
def outcome_help(self):
|
||||
return Task.TASK_OUTCOME_HELP[self.outcome]
|
||||
|
||||
def get_executed_display(self):
|
||||
if self.task_executed:
|
||||
return "Executed"
|
||||
|
||||
Reference in New Issue
Block a user