fix binary cache test on old python versions

This commit is contained in:
Artemis Tosini 2024-07-17 06:36:27 +00:00
parent cd42c70501
commit 731ad9d4ee
Signed by: artemist
GPG key ID: EE5227935FE3FF18

View file

@ -142,9 +142,11 @@ let
scp -P 20022 $ssh_opts -r ${binaryCache} vagrant@localhost:binaryCache scp -P 20022 $ssh_opts -r ${binaryCache} vagrant@localhost:binaryCache
''; '';
install = '' install = ''
python3 -m http.server -d binaryCache 8000 & pushd binaryCache
python3 -m http.server 8000 &
server_pid=$! server_pid=$!
trap "kill $server_pid" EXIT trap "kill $server_pid" EXIT
popd
sleep 1 sleep 1
RUST_BACKTRACE="full" ./nix-installer install \ RUST_BACKTRACE="full" ./nix-installer install \
--use-substituters \ --use-substituters \