Revert "clan-cli: deprecate nix_shell() in favor of run_cmd()"

This reverts commit 37e6ca7a30.
This commit is contained in:
Jörg Thalheim
2024-07-17 14:04:49 +02:00
parent 55fc9dd00d
commit 0d6e2539e3
24 changed files with 116 additions and 104 deletions

View File

@@ -40,7 +40,6 @@ 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:
@@ -56,8 +55,7 @@ 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"
# don't lower this value -> trouble if test machine is slow
timeout: float = 100
timeout: float = 300
while socket_file.exists():
if timeout <= 0:
raise TimeoutError(