1
0
mirror of https://github.com/rancher/os.git synced 2025-09-05 16:52:20 +00:00

Modify the tests to work with multiple architectures

This commit is contained in:
Ivan Mikushin
2016-03-30 17:48:31 -07:00
parent 99c3207b14
commit 95d24ac67d
7 changed files with 28 additions and 15 deletions

View File

@@ -18,12 +18,15 @@ def test_system_boot(qemu):
u.flush_out(qemu.stdout, 'RancherOS {v} started'.format(v=version))
busybox = {'amd64': 'busybox', 'arm': 'armhf/busybox', 'arm64': 'aarch64/busybox'}
@pytest.mark.timeout(60)
def test_run_system_container(qemu):
u.wait_for_ssh(qemu)
ssh = subprocess.Popen(
'./scripts/ssh --qemu sudo system-docker run --rm busybox /bin/true',
'./scripts/ssh --qemu sudo system-docker run --rm ' + busybox[u.arch] + ' /bin/true',
shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True)
for ln in u.iter_lines(ssh.stdout):