From 414fefc0f771494d3e09f8e5a0a599b3a0ccac9e Mon Sep 17 00:00:00 2001 From: xuliping Date: Thu, 8 Aug 2024 07:04:18 +0000 Subject: [PATCH] for debug --- tests/bgp/test_bgp_session.py | 2 +- tests/common/devices/sonic.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/bgp/test_bgp_session.py b/tests/bgp/test_bgp_session.py index 7d636733b69..2af3fa197b3 100644 --- a/tests/bgp/test_bgp_session.py +++ b/tests/bgp/test_bgp_session.py @@ -144,7 +144,7 @@ def test_bgp_session_interface_down(duthosts, rand_one_dut_hostname, fanouthosts elif test_type == "reboot": reboot(duthost, localhost, reboot_type="warm", wait_warmboot_finalizer=True, warmboot_finalizer_timeout=360) - pytest_assert(wait_until(360, 10, 120, duthost.critical_services_fully_started), + pytest_assert(wait_until(600, 10, 120, duthost.critical_services_fully_started), "Not all critical services are fully started") if failure_type == "interface": diff --git a/tests/common/devices/sonic.py b/tests/common/devices/sonic.py index 60c719cb22b..beef9e3ed2e 100644 --- a/tests/common/devices/sonic.py +++ b/tests/common/devices/sonic.py @@ -500,6 +500,8 @@ def critical_services_fully_started(self): """ @summary: Check whether all the SONiC critical services have started """ + self.command("docker ps -a") + self.command("systemctl status bgp.service ") result = self.critical_services_status() logging.debug("Status of critical services: %s" % str(result)) return all(result.values())