From 731ad9d4ee67ea565873416cdf6b2db6e55d20a4 Mon Sep 17 00:00:00 2001 From: Artemis Tosini Date: Wed, 17 Jul 2024 06:36:27 +0000 Subject: [PATCH] fix binary cache test on old python versions --- nix/tests/vm-test/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nix/tests/vm-test/default.nix b/nix/tests/vm-test/default.nix index 24c3957..598d568 100644 --- a/nix/tests/vm-test/default.nix +++ b/nix/tests/vm-test/default.nix @@ -142,9 +142,11 @@ let scp -P 20022 $ssh_opts -r ${binaryCache} vagrant@localhost:binaryCache ''; install = '' - python3 -m http.server -d binaryCache 8000 & + pushd binaryCache + python3 -m http.server 8000 & server_pid=$! trap "kill $server_pid" EXIT + popd sleep 1 RUST_BACKTRACE="full" ./nix-installer install \ --use-substituters \