From a80306ef25505d3df3384b4fdc2f06ad4b944ba3 Mon Sep 17 00:00:00 2001 From: Timofey Date: Wed, 5 Aug 2015 17:32:14 +0300 Subject: [PATCH] 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. --- tools/testlog_to_xml_converter.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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