Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions zigzag/zigzag_test_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -930,9 +930,10 @@ def automation_content(self):
"""
if self._automation_content is None:
try:
self._automation_content = _ZigZagTestLogTempest._TEMPEST_UUID_RGX.search(
self._testcase_xml.attrib['name']).group(0)
except AttributeError:
automation_content = list(filter(_ZigZagTestLogTempest._TEMPEST_UUID_RGX.search,
self.test_execution_parameters))[0]
self._automation_content = _ZigZagTestLogTempest._TEMPEST_UUID_RGX.search(automation_content).group(0)
except IndexError: # happens when we filter to an empty list
raise ZigZagTestLogError('OHH snap there is no UUID!!!')

return self._automation_content
Expand Down