From a7baeb510901b132364c0940d6012d535f192836 Mon Sep 17 00:00:00 2001 From: Austin Pham Date: Tue, 4 Feb 2025 16:13:34 +1100 Subject: [PATCH] fix: fix show reboot-cause history error Signed-off-by: Austin Pham --- tests/common/reboot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/common/reboot.py b/tests/common/reboot.py index ddf88c1dfe2..5ea1bf59340 100644 --- a/tests/common/reboot.py +++ b/tests/common/reboot.py @@ -342,6 +342,7 @@ def reboot(duthost, localhost, reboot_type='cold', delay=10, # Use an alternative reboot check if T2 device and REBOOT_TYPE_POWEROFF if duthost.get_facts().get("modular_chassis") and reboot_type == REBOOT_TYPE_POWEROFF: + wait_until(120, 5, 0, duthost.critical_processes_running, "database") curr_reboot_cause_history = duthost.show_and_parse("show reboot-cause history") pytest_assert(prev_reboot_cause_history != curr_reboot_cause_history, "No new input into history-queue") else: