From 6eda6928faa746c7e012827296f17fc364cde1b3 Mon Sep 17 00:00:00 2001 From: pmikus Date: Tue, 10 Jan 2017 08:06:23 +0100 Subject: [PATCH 1/1] 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 --- resources/tools/robot_output_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.16.6