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:
Anusha Ramineni 2016-02-05 10:26:32 +05:30
parent b3eba02ad6
commit 7299d463ff
1 changed files with 1 additions and 1 deletions

View File

@ -31,6 +31,6 @@ def retry_on_exception(f):
def wrapper():
try:
return f()
except KeyError:
except Exception:
return False
return wrapper