clan-cli: deprecate nix_shell() in favor of run_cmd()
This commit is contained in:
@@ -40,6 +40,7 @@ def run_vm_in_thread(machine_name: str) -> None:
|
||||
# wait for qmp socket to exist
|
||||
def wait_vm_up(state_dir: Path) -> None:
|
||||
socket_file = state_dir / "qga.sock"
|
||||
# don't lower this value -> trouble if test machine is slow
|
||||
timeout: float = 100
|
||||
while True:
|
||||
if timeout <= 0:
|
||||
@@ -55,7 +56,8 @@ def wait_vm_up(state_dir: Path) -> None:
|
||||
# wait for vm to be down by checking if qga socket is down
|
||||
def wait_vm_down(state_dir: Path) -> None:
|
||||
socket_file = state_dir / "qga.sock"
|
||||
timeout: float = 300
|
||||
# don't lower this value -> trouble if test machine is slow
|
||||
timeout: float = 100
|
||||
while socket_file.exists():
|
||||
if timeout <= 0:
|
||||
raise TimeoutError(
|
||||
|
||||
Reference in New Issue
Block a user