Skip to content

Commit

Permalink
for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
lipxu committed Aug 8, 2024
1 parent 45ea717 commit 414fefc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/bgp/test_bgp_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down
2 changes: 2 additions & 0 deletions tests/common/devices/sonic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 414fefc

Please sign in to comment.