Skip to content

Instantly share code, notes, and snippets.

@cjeon
Created February 9, 2021 00:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cjeon/dc99cf31a1cad4e5cf5c962ca61e8b00 to your computer and use it in GitHub Desktop.
Save cjeon/dc99cf31a1cad4e5cf5c962ca61e8b00 to your computer and use it in GitHub Desktop.
NON_FINAL_STATES = ["VALIDATING", "PENDING", "RUNNING"]
while testMatrix["state"] in NON_FINAL_STATES:
sleep(5)
# to prevent no output kill, print something.
print(".", end="", flush=True)
testMatrix = testing.projects().testMatrices() \
.get(projectId=PROJECT_ID, testMatrixId=testMatrix["testMatrixId"]).execute()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment