diff options
author | Timofey <t.danshin@corp.mail.ru> | 2015-08-05 17:32:14 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:59:16 +0300 |
commit | a80306ef25505d3df3384b4fdc2f06ad4b944ba3 (patch) | |
tree | fe0d0b869c045279976b460a6025a5dcf49757ee /tools | |
parent | 6d6bd1c2667d89966bf13018baef64a7ba0894ee (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-x | tools/testlog_to_xml_converter.py | 4 |
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 |