Add retries to test

This commit is contained in:
alesapin 2020-04-10 15:14:27 +03:00
parent 8a19f6d322
commit 88657cfbe1

View File

@ -180,7 +180,14 @@ def main():
if __name__ == "__main__":
try:
main()
except:
exception_text = ''
for i in range(1, 5):
try:
main()
break
except Exception as ex:
exception_text = str(ex)
if exception_text:
print("Exception: {}".format(exception_text), file=sys.stderr)
os._exit(1)