From 51bf3187d7c99ae83ce40e85d0a655a0b1c8ec0d Mon Sep 17 00:00:00 2001 From: DavHau Date: Mon, 16 Sep 2024 18:54:27 +0200 Subject: [PATCH] vars/tests: fix nix eval triggering git concurrent access Prevents this error: Another git process seems to be running in this repository --- pkgs/clan-cli/tests/test_vars_deployment.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/clan-cli/tests/test_vars_deployment.py b/pkgs/clan-cli/tests/test_vars_deployment.py index 3c784d93d..69c294a28 100644 --- a/pkgs/clan-cli/tests/test_vars_deployment.py +++ b/pkgs/clan-cli/tests/test_vars_deployment.py @@ -3,6 +3,7 @@ from pathlib import Path import pytest from age_keys import SopsSetup +from clan_cli import cmd from clan_cli.nix import nix_eval, run from fixtures_flakes import generate_flake from helpers import cli @@ -90,6 +91,8 @@ def test_vm_deployment( ) ).stdout.strip() assert "no-such-path" not in shared_secret_path + # run nix flake lock + cmd.run(["nix", "flake", "lock"]) vm_m1 = run_vm_in_thread("m1_machine") vm_m2 = run_vm_in_thread("m2_machine", ssh_port=2222) qga_m1 = qga_connect("m1_machine", vm_m1)