aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/robot_output_parser.py
diff options
context:
space:
mode:
authorpmikus <pmikus@cisco.com>2017-01-10 08:06:23 +0100
committerPeter Mikus <pmikus@cisco.com>2017-01-10 08:23:23 +0000
commit6eda6928faa746c7e012827296f17fc364cde1b3 (patch)
tree8690e6d896b58d0d7ff6caf8976ce5671e361b46 /resources/tools/robot_output_parser.py
parent79991f4e027f0be2109519863e278e638829c741 (diff)
Fix: Add prefix to elements of output-perf-xml
Robot results parser is using names of suites to create XML with performance data. This patch is supposed to fix the situation when the name of suite starts with digit. This leads to issue that final XML is not valid. Change-Id: I0046da4ff62f661de07f8e659ae511610c8c61f8 Signed-off-by: pmikus <pmikus@cisco.com>
Diffstat (limited to 'resources/tools/robot_output_parser.py')
-rwxr-xr-xresources/tools/robot_output_parser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/tools/robot_output_parser.py b/resources/tools/robot_output_parser.py
index fb085980f6..d5e9b88597 100755
--- a/resources/tools/robot_output_parser.py
+++ b/resources/tools/robot_output_parser.py
@@ -92,7 +92,7 @@ class ExecutionChecker(ResultVisitor):
for tag in test.tags:
tags.append(tag)
test_elem = ET.SubElement(self.root,
- test.parent.name.replace(" ", ""))
+ "S"+test.parent.name.replace(" ", ""))
test_elem.attrib['name'] = test.parent.name
test_elem.attrib['framesize'] = str(re.search(\
self.tc_regexp, test.name).group(2))