Skip to content
Snippets Groups Projects
Commit 5f1219bc authored by Raphael Defosseux's avatar Raphael Defosseux Committed by Robert Schmidt
Browse files

CI GetContainerHealth(): speed up checks

parent d0b637a0
No related branches found
No related tags found
2 merge requests!3120Integration: `2024.w47`,!2670chore(ci): adding Flexric-RAN integration test
......@@ -159,12 +159,11 @@ def GetContainerHealth(ssh, containerName):
return False
if 'db_init' in containerName or 'db-init' in containerName: # exits with 0, there cannot be healthy
return True
time.sleep(5)
for _ in range(3):
for _ in range(8):
result = ssh.run(f'docker inspect --format="{{{{.State.Health.Status}}}}" {containerName}', silent=True)
if result.stdout == 'healthy':
return True
time.sleep(10)
time.sleep(5)
return False
def ExistEnvFilePrint(ssh, wd, prompt='env vars in existing'):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment