diff options
author | Ravi Chintakunta <ravi.chintakunta@timesys.com> | 2014-02-17 23:30:41 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-09 12:24:00 -0700 |
commit | 31d4bf8484ee42690386c6b7a6bd6c7a2be54464 (patch) | |
tree | b9ef1f8c22dc51445c9ba6a35f05e091262a47b2 /bitbake/lib/toaster/orm | |
parent | 2bd19cd02623b7c5494c2f7057587252a75746c9 (diff) | |
download | poky-31d4bf8484ee42690386c6b7a6bd6c7a2be54464.tar.gz |
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>
Diffstat (limited to 'bitbake/lib/toaster/orm')
-rw-r--r-- | bitbake/lib/toaster/orm/models.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index 588e1b9265..abc16d9b88 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/lib/toaster/orm/models.py | |||
@@ -111,6 +111,15 @@ class Task(models.Model): | |||
111 | (OUTCOME_EMPTY, 'Empty'), | 111 | (OUTCOME_EMPTY, 'Empty'), |
112 | ) | 112 | ) |
113 | 113 | ||
114 | TASK_OUTCOME_HELP = { | ||
115 | OUTCOME_SUCCESS:'This task completed successfully', | ||
116 | OUTCOME_COVERED:'This task did not run because its output is provided by another task', | ||
117 | OUTCOME_CACHED:'This task restored output from the sstate-cache directory or mirrors', | ||
118 | OUTCOME_PREBUILT:'This task did not run because its outcome was reused from a previous build', | ||
119 | OUTCOME_FAILED:'This task did not complete', | ||
120 | OUTCOME_NA:'' | ||
121 | } | ||
122 | |||
114 | search_allowed_fields = [ "recipe__name", "recipe__version", "task_name", "logfile" ] | 123 | search_allowed_fields = [ "recipe__name", "recipe__version", "task_name", "logfile" ] |
115 | 124 | ||
116 | objects = TaskManager() | 125 | objects = TaskManager() |
@@ -118,6 +127,9 @@ class Task(models.Model): | |||
118 | def get_related_setscene(self): | 127 | def get_related_setscene(self): |
119 | return Task.objects.related_setscene(self) | 128 | return Task.objects.related_setscene(self) |
120 | 129 | ||
130 | def outcome_help(self): | ||
131 | return Task.TASK_OUTCOME_HELP[self.outcome] | ||
132 | |||
121 | def get_executed_display(self): | 133 | def get_executed_display(self): |
122 | if self.task_executed: | 134 | if self.task_executed: |
123 | return "Executed" | 135 | return "Executed" |