Retry tempest tests on any error
Currently, tempest tests are retried only if 'KeyError' is occurred. But recently, gate seems to fail with TypeError etc , which again solves by recheck. This patch is to retry on any exception occurred until the specified time. Change-Id: I545decc9810fab1552f5173f63dd6ca89acf694c
This commit is contained in:
parent
b3eba02ad6
commit
7299d463ff
|
@ -31,6 +31,6 @@ def retry_on_exception(f):
|
|||
def wrapper():
|
||||
try:
|
||||
return f()
|
||||
except KeyError:
|
||||
except Exception:
|
||||
return False
|
||||
return wrapper
|
||||
|
|
Loading…
Reference in New Issue