From 7e8eb178452cc8beaf6db35cd40294ac2582d08b Mon Sep 17 00:00:00 2001 From: Clark Williams Date: Mon, 23 Aug 2010 14:25:57 -0500 Subject: clean up text portion of 'command_line' tag in XML Return None if there were no jobs, otherwise return the command line used to start hackbench Signed-off-by: Clark Williams --- rteval/hackbench.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rteval/hackbench.py b/rteval/hackbench.py index c705be0..4083187 100644 --- a/rteval/hackbench.py +++ b/rteval/hackbench.py @@ -115,7 +115,8 @@ class Hackbench(load.Load): os.close(err) def genxml(self, x): - x.taggedvalue('command_line', ' '.join(self.args), {'name':'hackbench', 'run': self.jobs and '1' or '0'}) + x.taggedvalue('command_line', self.jobs and ' '.join(self.args) or None, + {'name':'hackbench', 'run': self.jobs and '1' or '0'}) def create(params = {}): return Hackbench(params) -- cgit