Patchwork [bitbake-devel,1/2] bitbake: toaster: Fix total number of tasks in build dashboard

login
register
mail settings
Submitter Paul Eggleton
Date April 11, 2014, 4:32 p.m.
Message ID <0cb598029aae2d9a9bade51bc2c545dc577f250c.1397233921.git.paul.eggleton@linux.intel.com>
Download mbox | patch
Permalink /patch/70519/
State New
Headers show

Comments

Paul Eggleton - April 11, 2014, 4:32 p.m.
From: Belen Barros Pena <belen.barros.pena@intel.com>

The total number of tasks in the build dashboard was counting
_setscene tasks, which are not exposed by Toaster as separate
tasks. This patch makes sure that _setscene tasks are not
counted when calculating that number.

[YOCTO #6145]

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
---
 lib/toaster/toastergui/templates/builddashboard.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/lib/toaster/toastergui/templates/builddashboard.html b/lib/toaster/toastergui/templates/builddashboard.html
index fa4b194..a01ef3d 100644
--- a/lib/toaster/toastergui/templates/builddashboard.html
+++ b/lib/toaster/toastergui/templates/builddashboard.html
@@ -125,7 +125,7 @@ 
     <div class="well span4 dashboard-section">
         <h4><a href="{%url 'tasks' build.pk%}">Tasks</a></h4>
             <dl>
-        <dt>Total number of tasks</dt><dd><a href="{% url 'tasks' build.pk %}">{{build.task_build.all.count}}</a></dd>
+        <dt>Total number of tasks</dt><dd><a href="{% url 'tasks' build.pk %}">{% query build.task_build order__gt=0 as alltasks %}{{alltasks.count}}</a></dd>
         <dt>
             Tasks executed
             <i class="icon-question-sign get-help" title="'Executed' tasks are those that need to be run in order to generate the task output"></i>