Commit 7a44f695 authored by Tristan Cavelier's avatar Tristan Cavelier

erp5_test_result: fix AttributeError on stderr property durring TestResult_sendEmailNotification

parent 3afa6a67
...@@ -284,7 +284,7 @@ def TestResult_sendEmailNotification(self, mail_to=None, mail_from=None, ...@@ -284,7 +284,7 @@ def TestResult_sendEmailNotification(self, mail_to=None, mail_from=None,
if full_stderr or tcr in unknown_status_test_case_list: if full_stderr or tcr in unknown_status_test_case_list:
extend_attachment(tcr.getProperty('stderr', '').splitlines()) extend_attachment(tcr.getProperty('stderr', '').splitlines())
elif tcr in failed_test_case_list: elif tcr in failed_test_case_list:
tb_list = tcr.getProperty('stderr').split(separator1)[1:] tb_list = tcr.getProperty('stderr', '').split(separator1)[1:]
if len(tb_list): if len(tb_list):
for tb in tb_list[:-1]: for tb in tb_list[:-1]:
extend_attachment(tb.splitlines()) extend_attachment(tb.splitlines())
......
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