From 9dcb9d5c87361ddd6e0385ba5f264c2e38816d85 Mon Sep 17 00:00:00 2001 From: Zhongning Li <60045212+tomli380576@users.noreply.github.com> Date: Mon, 23 Dec 2024 13:40:17 +0800 Subject: [PATCH] fix: wait a second before calling systemd-analyze again --- providers/base/bin/reboot_check_test.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/providers/base/bin/reboot_check_test.py b/providers/base/bin/reboot_check_test.py index c452ad1882..8eb9684dd1 100755 --- a/providers/base/bin/reboot_check_test.py +++ b/providers/base/bin/reboot_check_test.py @@ -10,6 +10,7 @@ import typing as T from checkbox_support.scripts.image_checker import has_desktop_environment from datetime import datetime +import time from checkbox_support.helpers.timeout import timeout @@ -328,6 +329,8 @@ def check_systemd(): if out.returncode == 0: print("Graphical target reached!") return True + else: + time.sleep(1) except sp.CalledProcessError: pass