Commit 53e5d01d authored by Boris Djalal's avatar Boris Djalal

Adding xml parsing debug.

Signed-off-by: default avatarBoris Djalal <boris.djalal@eurecom.fr>
parent b2a7c074
......@@ -3361,7 +3361,10 @@ elif re.match('^InitiateHtml$', mode, re.IGNORECASE):
while (count < SSH.nbTestXMLfiles):
xml_test_file = cwd + "/" + SSH.testXMLfiles[count]
if (os.path.isfile(xml_test_file)):
try:
xmlTree = ET.parse(xml_test_file)
except:
print("Error while parsing file: " + xml_test_file)
xmlRoot = xmlTree.getroot()
SSH.htmlTabRefs.append(xmlRoot.findtext('htmlTabRef',default='test-tab-' + str(count)))
SSH.htmlTabNames.append(xmlRoot.findtext('htmlTabName',default='Test-' + str(count)))
......
......@@ -41,5 +41,3 @@
</testCase>
</testCaseList>
74,1 Bot
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment