respect the timeout

This commit is contained in:
Jean-Paul Calderone 2019-03-18 16:35:31 -04:00
parent 55690bf639
commit a44c5d0f11

View File

@ -303,7 +303,7 @@ def await_files_exist(paths, timeout=15, await_all=False):
an Exception is raised
"""
start_time = time.time()
while time.time() - start_time < 15.0:
while time.time() - start_time < timeout:
print(" waiting for: {}".format(' '.join(paths)))
found = [p for p in paths if exists(p)]
print("found: {}".format(found))