Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LiliDeng committed Nov 13, 2024
1 parent 48c5ba3 commit b79a670
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lisa/tools/reboot.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ def reboot(self, time_out: int = 300) -> None:
# it doesn't matter to exceptions here. The system may reboot fast
self._log.debug(f"ignorable exception on rebooting: {identifier}")

self._log.debug("start sleep")
time.sleep(300)

connected: bool = False
# The previous steps may take longer time than time out. After that, it
# needs to connect at least once.
Expand Down
2 changes: 1 addition & 1 deletion lisa/tools/who.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def last_boot(self, no_error_log: bool = True) -> datetime:
"-b",
force_run=True,
no_error_log=no_error_log,
timeout=20,
timeout=60,
)
command_result.assert_exit_code(
0, f"'last' return non-zero exit code: {command_result.stderr}"
Expand Down

0 comments on commit b79a670

Please sign in to comment.