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 \