From 324791a729d29b929dd2c78489f2564d5e01ad92 Mon Sep 17 00:00:00 2001 From: David Reyna Date: Thu, 6 Mar 2014 22:15:58 -0800 Subject: bitbake: toaster: add empty outcome support to task page Add the new "empty" outcome value to the task detail page, with help text, help notice, plus sorting for empty in the tasks page. [YOCTO #5917] (Bitbake rev: 874b627b96809c274023b5fa330dfbdd14676d19) Signed-off-by: David Reyna Signed-off-by: Richard Purdie --- bitbake/lib/toaster/orm/models.py | 1 + bitbake/lib/toaster/toastergui/templates/task.html | 4 ++++ bitbake/lib/toaster/toastergui/views.py | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index 0646813552..93506d7c1b 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/lib/toaster/orm/models.py @@ -146,6 +146,7 @@ class Task(models.Model): (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_EMPTY, 'This task has no executable content'), (OUTCOME_NA, ''), ) diff --git a/bitbake/lib/toaster/toastergui/templates/task.html b/bitbake/lib/toaster/toastergui/templates/task.html index a8bcb52194..5d79d447b9 100644 --- a/bitbake/lib/toaster/toastergui/templates/task.html +++ b/bitbake/lib/toaster/toastergui/templates/task.html @@ -121,6 +121,10 @@ + {%elif task.outcome == task.OUTCOME_EMPTY%} +
+ This task is empty because it has the noexec flag set to 1, or the task function is empty +
{% endif %} {% endif %} diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py index ccf95855a3..6273d4c5ae 100644 --- a/bitbake/lib/toaster/toastergui/views.py +++ b/bitbake/lib/toaster/toastergui/views.py @@ -558,7 +558,7 @@ def tasks_common(request, build_id, variant): ('Cached Tasks', 'outcome:%d'%Task.OUTCOME_CACHED), ('Prebuilt Tasks', 'outcome:%d'%Task.OUTCOME_PREBUILT), ('Covered Tasks', 'outcome:%d'%Task.OUTCOME_COVERED), - ('Empty Tasks', 'outcome:%d'%Task.OUTCOME_NA), + ('Empty Tasks', 'outcome:%d'%Task.OUTCOME_EMPTY), ] } -- cgit v1.2.3-54-g00ecf