Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTimofey <t.danshin@corp.mail.ru>2015-08-05 17:32:14 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:59:16 +0300
commita80306ef25505d3df3384b4fdc2f06ad4b944ba3 (patch)
treefe0d0b869c045279976b460a6025a5dcf49757ee /tools
parent6d6bd1c2667d89966bf13018baef64a7ba0894ee (diff)
Stacktrace for failures in Mail.
According to the JUnit xml specifications found on the internet, it seems that now the stacktraces for the failures in our tests should be represented in the mails Jenkins sends.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/testlog_to_xml_converter.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/testlog_to_xml_converter.py b/tools/testlog_to_xml_converter.py
index dfafdf0e5b..5c15bb99f2 100755
--- a/tools/testlog_to_xml_converter.py
+++ b/tools/testlog_to_xml_converter.py
@@ -97,7 +97,9 @@ class TestInfo:
b.text = self.test_comment
if self.test_result == TestInfo.FAILED:
- ElementTree.SubElement(d, "failure")
+ fail = ElementTree.SubElement(d, "failure")
+ if self.test_comment:
+ fail.text = self.test_comment
return d