mirror of
https://github.com/NixOS/nix
synced 2025-07-10 04:43:53 +02:00
Add DummyStore (dummy://)
DummyStore does not allow building or adding paths. This is useful for evaluation tests when you don't want to initialize a "proper" store.
This commit is contained in:
parent
d0690bc311
commit
6a67e57019
3 changed files with 61 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
source common.sh
|
||||
|
||||
export TEST_VAR=foo # for eval-okay-getenv.nix
|
||||
export NIX_REMOTE=dummy://
|
||||
|
||||
nix-instantiate --eval -E 'builtins.trace "Hello" 123' 2>&1 | grep -q Hello
|
||||
(! nix-instantiate --show-trace --eval -E 'builtins.addErrorContext "Hello" 123' 2>&1 | grep -q Hello)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue