зеркало из https://github.com/microsoft/lisa.git
fix timezone may change after reboot
in some distros, the timezone may change after rebooting, so current boot time is smaller than last time. Comparing with equal to avoid timeout.
This commit is contained in:
Родитель
5e5ccbea2c
Коммит
1698a68118
|
@ -64,7 +64,7 @@ class Reboot(Tool):
|
|||
|
||||
connected: bool = False
|
||||
while (
|
||||
last_boot_time >= current_boot_time and timer.elapsed(False) < self.time_out
|
||||
last_boot_time == current_boot_time and timer.elapsed(False) < self.time_out
|
||||
):
|
||||
try:
|
||||
self.node.close()
|
||||
|
|
Загрузка…
Ссылка в новой задаче