Skip to content

Commit

Permalink
fix: wait a second before calling systemd-analyze again
Browse files Browse the repository at this point in the history
  • Loading branch information
tomli380576 committed Dec 23, 2024
1 parent 4d5532a commit 9dcb9d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions providers/base/bin/reboot_check_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -328,6 +329,8 @@ def check_systemd():
if out.returncode == 0:
print("Graphical target reached!")
return True

Check warning on line 331 in providers/base/bin/reboot_check_test.py

View check run for this annotation

Codecov / codecov/patch

providers/base/bin/reboot_check_test.py#L330-L331

Added lines #L330 - L331 were not covered by tests
else:
time.sleep(1)
except sp.CalledProcessError:
pass

Check warning on line 335 in providers/base/bin/reboot_check_test.py

View check run for this annotation

Codecov / codecov/patch

providers/base/bin/reboot_check_test.py#L333-L335

Added lines #L333 - L335 were not covered by tests

Expand Down

0 comments on commit 9dcb9d5

Please sign in to comment.