summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBelen Barros Pena <belen.barros.pena@intel.com>2014-04-11 17:32:30 +0100
committerAlexandru DAMIAN <alexandru.damian@intel.com>2014-06-20 14:46:36 +0100
commita429278c70b55f7c11a9ef3d5af28cf88850a227 (patch)
treeb2ab4466d0227bed7ed60779c844d02530a81a3d
parent6e7f7cdc0d533911046741817be1cfffde23f125 (diff)
downloadbitbake-a429278c70b55f7c11a9ef3d5af28cf88850a227.tar.gz
bitbake: toaster: Fix total number of tasks in build dashboard
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> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/toaster/toastergui/templates/builddashboard.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/toaster/toastergui/templates/builddashboard.html b/lib/toaster/toastergui/templates/builddashboard.html
index fa4b194eb..a01ef3d93 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>