Skip to content

Commit

Permalink
divide qtest time values by 1000
Browse files Browse the repository at this point in the history
  • Loading branch information
scpeters committed Apr 15, 2016
1 parent c7f7fec commit 94322f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/qtest_to_junit.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<xsl:variable name="classname" select="/TestCase/@name" />
<xsl:variable name="total-tests" select="count(/TestCase/TestFunction)" />
<xsl:variable name="total-failures" select="count(/TestCase/TestFunction/Incident[@type='fail'])" />
<xsl:variable name="total-time" select="sum(/TestCase/TestFunction/BenchmarkResult/@value)" />
<xsl:variable name="total-time" select="sum(/TestCase/TestFunction/BenchmarkResult/@value) div 1000" />

<!-- main template call -->
<xsl:template match="/">
Expand Down Expand Up @@ -36,7 +36,7 @@
<xsl:variable name="time">
<xsl:choose>
<xsl:when test="BenchmarkResult/@value">
<xsl:value-of select='BenchmarkResult/@value'/>
<xsl:value-of select='BenchmarkResult/@value div 1000'/>
</xsl:when>
<xsl:otherwise>
<xsl:text>0</xsl:text>
Expand Down

0 comments on commit 94322f7

Please sign in to comment.