def test_system_boot(qemu): version = u.rancheros_version("./build.conf") print("parsed version: " + version) def has_ros_started_substr(s): return str.find(s, "RancherOS {v} started".format(v=version)) > -1 for _ in it.ifilter(has_ros_started_substr, it.imap(u.with_effect(print), u.iter_lines(qemu.stdout))): assert True return assert False
def test_ros_dev(qemu): u.wait_for_ssh(qemu) ssh = subprocess.Popen( './scripts/ssh --qemu sudo ros dev', shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True) for ln in u.iter_lines(ssh.stdout): print(ln) ssh.wait() assert ssh.returncode == 0
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', shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True) for ln in u.iter_lines(ssh.stdout): print(ln) ssh.wait() assert ssh.returncode == 0
def test_system_boot(build_and_run): version = u.rancheros_version('./tests/integration/assets/test_02/build.conf') print('parsed version: ' + version) def has_ros_started_substr(s): return str.find(s, 'RancherOS {v} started'.format(v=version)) > -1 for _ in it.ifilter(has_ros_started_substr, it.imap(u.with_effect(print), u.iter_lines(build_and_run.stdout))): assert True return assert False
def test_system_boot(qemu): version = u.rancheros_version('./build.conf') print('parsed version: ' + version) def has_ros_started_substr(s): return str.find(s, 'RancherOS {v} started'.format(v=version)) > -1 for _ in it.ifilter( has_ros_started_substr, it.imap(u.with_effect(print), u.iter_lines(qemu.stdout))): assert True return assert False