diff --git a/Dockerfile b/Dockerfile index 83adf5a..15f83e6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -63,6 +63,7 @@ RUN echo "Building for platform '$TARGETPLATFORM'" \ nginx \ nginx-mod-stream \ netcat-openbsd \ + tcpdump \ uuidgen \ curl \ usbutils \ diff --git a/test/tests/openwrt_docker_test.py b/test/tests/openwrt_docker_test.py index afce642..d851876 100644 --- a/test/tests/openwrt_docker_test.py +++ b/test/tests/openwrt_docker_test.py @@ -441,4 +441,8 @@ def test_api_get_factory_reset(docker_services): def test_mdns(docker_services): wait_for_openwrt_startup(docker_services) - assert os.system("ping -c 1 openwrt.local >/dev/null") == 0 \ No newline at end of file + try: + polling2.poll(lambda: os.system("ping -c 1 openwrt.local") == 0, step=1, timeout=120) + except polling2.TimeoutException: + assert True, 'ping timeout' + return \ No newline at end of file