From acb78d4fb8398520dbcac1eaa182910876adae78 Mon Sep 17 00:00:00 2001 From: lassulus Date: Wed, 4 Dec 2024 17:00:52 +0100 Subject: [PATCH] test_vars_deployment: pass stdin as DEVNULL to vm --- pkgs/clan-cli/tests/test_vars_deployment.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/clan-cli/tests/test_vars_deployment.py b/pkgs/clan-cli/tests/test_vars_deployment.py index 62941e9d8..3f6515c59 100644 --- a/pkgs/clan-cli/tests/test_vars_deployment.py +++ b/pkgs/clan-cli/tests/test_vars_deployment.py @@ -1,4 +1,5 @@ import json +import subprocess from contextlib import ExitStack import pytest @@ -99,8 +100,8 @@ def test_vm_deployment( vm1_config = inspect_vm(machine=Machine("m1_machine", FlakeId(str(flake.path)))) vm2_config = inspect_vm(machine=Machine("m2_machine", FlakeId(str(flake.path)))) with ExitStack() as stack: - vm1 = stack.enter_context(spawn_vm(vm1_config)) - vm2 = stack.enter_context(spawn_vm(vm2_config)) + vm1 = stack.enter_context(spawn_vm(vm1_config, stdin=subprocess.DEVNULL)) + vm2 = stack.enter_context(spawn_vm(vm2_config, stdin=subprocess.DEVNULL)) qga_m1 = stack.enter_context(vm1.qga_connect()) qga_m2 = stack.enter_context(vm2.qga_connect()) # check my_secret is deployed