From: pmikus Date: Tue, 10 Jan 2017 07:06:23 +0000 (+0100) Subject: Fix: Add prefix to elements of output-perf-xml X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=commitdiff_plain;h=6eda6928faa746c7e012827296f17fc364cde1b3;hp=79991f4e027f0be2109519863e278e638829c741 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 --- 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))