Commit 01098879 authored by Rafael Monnerat's avatar Rafael Monnerat

Tear down test and mark failure if it raises.

parent 6ac6c409
...@@ -569,6 +569,18 @@ def main(): ...@@ -569,6 +569,18 @@ def main():
skip_count=0, skip_count=0,
) )
del running_test_dict[section] del running_test_dict[section]
try:
tester.teardown()
except slapos.slap.NotFoundError:
# This exception is ignored because we cannot
# Teardown if SR URL do not exist.
logger.exception('Fail and not found')
pass
except Exception:
logger.exception('teardown failed, human '
'assistance needed for cleanup')
raise
else: else:
next_deadline = min(deadline, next_deadline) next_deadline = min(deadline, next_deadline)
if running_test_dict: if running_test_dict:
......
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