[infra] flush stdout

This commit is contained in:
Mike Aizatsky 2017-03-13 17:37:57 -07:00
parent 120f02b06d
commit d6ca42d7c9
1 changed files with 1 additions and 0 deletions

View File

@ -38,6 +38,7 @@ def wait_for_build(build_id):
current_status = build_info['status']
if current_status != status:
print datetime.datetime.now(), current_status
sys.stdout.flush()
status = current_status
if status == 'SUCCESS' or status == 'FAILURE':
return status == 'SUCCESS'