Fix BRAG status is different as viewed from Diamonds and from the _BRAG.xml page PDK_3.0.g
authorDario Sestito <darios@symbian.org>
Wed, 10 Feb 2010 16:22:25 +0000
changeset 886 fc600bbaa15c
parent 885 00ec68ebd201
child 888 5cd45cbf7622
child 900 ed28a33746f2
Fix BRAG status is different as viewed from Diamonds and from the _BRAG.xml page
common/tools/brag/bragForDiamonds.xsl
--- a/common/tools/brag/bragForDiamonds.xsl	Wed Feb 10 15:18:36 2010 +0000
+++ b/common/tools/brag/bragForDiamonds.xsl	Wed Feb 10 16:22:25 2010 +0000
@@ -2,10 +2,10 @@
 
 <!-- Main template -->
 <xsl:template match="/buildStatus">
-	<xsl:variable name="criticalCount" select="count(phase/step/failures[@level='critical']/failure)"/>
-	<xsl:variable name="majorCount" select="count(phase/step/failures[@level='major']/failure)"/>
-	<xsl:variable name="minorCount" select="count(phase/step/failures[@level='minor']/failure)"/>
-	<xsl:variable name="unknownCount" select="count(phase/step/failures[@level!='critical' and @level!='major' and @level!='minor']/failure)"/>
+	<xsl:variable name="criticalCount" select="count(phase/step/failures[@level='critical']/failure)+sum(phase/step/failures[@level='critical']/@count)"/>
+	<xsl:variable name="majorCount" select="count(phase/step/failures[@level='major']/failure)+sum(phase/step/failures[@level='major']/@count)"/>
+	<xsl:variable name="minorCount" select="count(phase/step/failures[@level='minor']/failure)+sum(phase/step/failures[@level='minor']/@count)"/>
+	<xsl:variable name="unknownCount" select="count(phase/step/failures[@level!='critical' and @level!='major' and @level!='minor']/failure)+sum(phase/step/failures[@level!='critical' and @level!='major' and @level!='minor']/@count)"/>
 
 	<diamonds-build>
 	<schema>13</schema>