e2e: skip AttributeError

Signed-off-by: Churikova Tetiana <churikova.tm@gmail.com>
This commit is contained in:
Churikova Tetiana 2022-01-25 11:27:37 +01:00
parent c6eb964b7c
commit 6a8f7a07bf
No known key found for this signature in database
GPG Key ID: 0D4EA7B33B47E6D8
1 changed files with 6 additions and 3 deletions

View File

@ -144,9 +144,12 @@ class TestrailReport(BaseTestReport):
except KeyError:
result_id = ''
if last_testrun.error:
for geth in test.geth_paths.keys():
self.add_attachment(method='add_attachment_to_result/%s' % str(result_id),
path=test.geth_paths[geth])
try:
for geth in test.geth_paths.keys():
self.add_attachment(method='add_attachment_to_result/%s' % str(result_id),
path=test.geth_paths[geth])
except AttributeError:
pass
self.change_test_run_description()
def change_test_run_description(self):