Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actually test nix-env with a remote store #3668

Merged
merged 1 commit into from Jun 10, 2020

Conversation

thufschmitt
Copy link
Member

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

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
@edolstra edolstra merged commit f64cc6d into NixOS:master Jun 10, 2020
@zimbatm zimbatm deleted the fix-remote-nix-env-test branch June 10, 2020 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants