aboutsummaryrefslogtreecommitdiff
path: root/tests/lang.sh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-08-24 18:54:16 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-08-24 18:54:16 +0200
commit6a67e57019f39e43866866661df17394c168d29b (patch)
treeb78bd92a856ebffc84a816dd5aea9433ad6e1290 /tests/lang.sh
parentd0690bc311ee4969fc35604fed0fe819d4938704 (diff)
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.
Diffstat (limited to 'tests/lang.sh')
-rw-r--r--tests/lang.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/lang.sh b/tests/lang.sh
index c797a2a74..61bb444ba 100644
--- a/tests/lang.sh
+++ b/tests/lang.sh
@@ -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)