1
0
mirror of https://github.com/rancher/os.git synced 2025-08-01 23:17:50 +00:00

integration tests: log while we are waiting for ssh and docker

This commit is contained in:
Ivan Mikushin 2015-12-02 17:24:35 +05:00
parent 887af95d8f
commit 2c89796274

View File

@ -61,5 +61,9 @@ def run_qemu(request, run_args=[]):
@pytest.mark.timeout(10)
def wait_for_ssh(ssh_command=['./scripts/ssh', '--qemu']):
i = 0
print('\nWaiting for ssh and docker... ' + str(i))
while subprocess.call(ssh_command + ['docker version >/dev/null 2>&1']) != 0:
i += 1
print('\nWaiting for ssh and docker... ' + str(i))
time.sleep(1)