From 6cfea2467c6393a3bdfd64a5deb5d88ca5edfa8b Mon Sep 17 00:00:00 2001 From: Albrecht Lohofener Date: Wed, 25 Sep 2024 15:05:59 +0200 Subject: [PATCH] Try to find why test is failed. --- test/tests/openwrt_docker_test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/tests/openwrt_docker_test.py b/test/tests/openwrt_docker_test.py index d11be21..721be1e 100644 --- a/test/tests/openwrt_docker_test.py +++ b/test/tests/openwrt_docker_test.py @@ -305,7 +305,9 @@ def test_nginx_luci_forwarding_access(docker_services, parameter): response = requests.get("https://localhost:9000", verify=False) assert ('LuCI - Lua Configuration Interface' in response.content.decode()) == True except Exception as excinfo: - print(get_logs()) + #print(get_logs()) + response = polling2.poll(lambda: os.system("ping -c 1 172.31.1.1") == 0, step=1, timeout=90) + os.system("ip addr") pytest.fail(f"Unexpected exception raised: {excinfo}") if parameter[1] == 'false':