summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClark Williams <williams@redhat.com>2010-08-23 14:18:44 -0500
committerClark Williams <williams@redhat.com>2010-08-23 14:18:44 -0500
commit7cc45dee6027b29c1cbd8ee76a9effea2d1b69ae (patch)
tree2581d1fa60e1a4ce44e9274223d3d990833ca534
parent393f77e3a3c815782e063fc10dbeb75a1d27a91f (diff)
downloadrteval-7cc45dee6027b29c1cbd8ee76a9effea2d1b69ae.tar.gz
rteval-7cc45dee6027b29c1cbd8ee76a9effea2d1b69ae.tar.xz
rteval-7cc45dee6027b29c1cbd8ee76a9effea2d1b69ae.zip
clean up XML generation
Add the 'run' attribute for load summary so that appropriate text can be generated if a load doesn't run Signed-off-by: Clark Williams <williams@redhat.com>
-rw-r--r--rteval/hackbench.py5
-rw-r--r--rteval/kcompile.py2
-rw-r--r--rteval/rteval_text.xsl7
3 files changed, 8 insertions, 6 deletions
diff --git a/rteval/hackbench.py b/rteval/hackbench.py
index 6451ce7..c705be0 100644
--- a/rteval/hackbench.py
+++ b/rteval/hackbench.py
@@ -115,10 +115,7 @@ class Hackbench(load.Load):
os.close(err)
def genxml(self, x):
- if self.jobs:
- x.taggedvalue('command_line', ' '.join(self.args), {'name':'hackbench'})
- else:
- x.taggedvalue('command_line', "<not run>", {'name':'hackbench'})
+ x.taggedvalue('command_line', ' '.join(self.args), {'name':'hackbench', 'run': self.jobs and '1' or '0'})
def create(params = {}):
return Hackbench(params)
diff --git a/rteval/kcompile.py b/rteval/kcompile.py
index a3f755d..89705c5 100644
--- a/rteval/kcompile.py
+++ b/rteval/kcompile.py
@@ -147,7 +147,7 @@ class Kcompile(load.Load):
os.close(err)
def genxml(self, x):
- x.taggedvalue('command_line', ' '.join(self.args), {'name':'kcompile'})
+ x.taggedvalue('command_line', ' '.join(self.args), {'name':'kcompile', 'run':'1'})
def create(params = {}):
return Kcompile(params)
diff --git a/rteval/rteval_text.xsl b/rteval/rteval_text.xsl
index fba3556..bdd8920 100644
--- a/rteval/rteval_text.xsl
+++ b/rteval/rteval_text.xsl
@@ -127,7 +127,12 @@
<xsl:text> - </xsl:text>
<xsl:value-of select="@name"/>
<xsl:text>: </xsl:text>
- <xsl:value-of select="."/>
+ <xsl:choose>
+ <xsl:when test="@run = '1'">
+ <xsl:value-of select="."/>
+ </xsl:when>
+ <xsl:otherwise>(Not run)</xsl:otherwise>
+ </xsl:choose>
<xsl:text>&#10;</xsl:text>
</xsl:template>