summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'numbench/xmlinput.py')
-rw-r--r--numbench/xmlinput.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/numbench/xmlinput.py b/numbench/xmlinput.py
index 87d9824..0f495d4 100644
--- a/numbench/xmlinput.py
+++ b/numbench/xmlinput.py
@@ -16,11 +16,18 @@ class Parser:
def getModuleArguments(self):
opTag = self._dom.getElementsByTagName('operations')[0]
try:
- args = shlex.split(opTag.firstChild.data)
+ args = tuple(shlex.split(opTag.firstChild.data))
except AttributeError:
args = ()
return args
+ def getReportTitle(self):
+ titleTag = self._dom.getElementsByTagName('title')
+ if len(titleTag) != 1:
+ return "Benchmarks report"
+ else:
+ return titleTag[0].firstChild.data
+
def getTestCases(self):
testNodes = self._dom.getElementsByTagName('case')