mirror of
https://github.com/NixOS/nix.git
synced 2025-11-29 05:31:00 +01:00
Actually test nix-env with a remote store
The `remote-store` test loads the `user-env` one to test nix-env when
using the daemon, but actually does it incorrectly because every test
starts (in `common.sh`) by resetting the value of `NIX_REMOTE`, meaning
that the `user-env` test will never use the daemon.
Fix this by setting `NIX_REMOTE_` before sourcing `user-env.sh` in the
`remote-store` test, so that `NIX_REMOTE` is correctly set inside the
test
(cherry picked from commit f6ac888d3e)
This commit is contained in:
parent
fd753efe17
commit
e0e9f91049
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ clearStore
|
|||
|
||||
startDaemon
|
||||
|
||||
storeCleared=1 $SHELL ./user-envs.sh
|
||||
storeCleared=1 NIX_REMOTE_=$NIX_REMOTE $SHELL ./user-envs.sh
|
||||
|
||||
nix-store --dump-db > $TEST_ROOT/d1
|
||||
NIX_REMOTE= nix-store --dump-db > $TEST_ROOT/d2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue