diff --git a/tests/integration/rostest/test_01_cloud_config.py b/tests/integration/rostest/test_01_cloud_config.py index 3b12815d..4216a4ea 100644 --- a/tests/integration/rostest/test_01_cloud_config.py +++ b/tests/integration/rostest/test_01_cloud_config.py @@ -53,6 +53,18 @@ def test_docker_args(qemu, cloud_config): assert v.find(expected) != -1 +@pytest.mark.timeout(40) +def test_dhcpcd(qemu, cloud_config): + assert qemu is not None + u.wait_for_ssh(ssh_command) + + v = subprocess.check_output( + ssh_command + ['sh', '-c', 'ps -ef | grep dhcpcd'], + stderr=subprocess.STDOUT, universal_newlines=True) + + assert v.find('dhcpcd -M') != -1 + + @pytest.mark.timeout(40) def test_docker_tls_args(qemu, cloud_config): assert qemu is not None