aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/eval-store.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/eval-store.sh')
-rw-r--r--tests/functional/eval-store.sh16
1 files changed, 14 insertions, 2 deletions
diff --git a/tests/functional/eval-store.sh b/tests/functional/eval-store.sh
index a34f3e82f..9937ecbce 100644
--- a/tests/functional/eval-store.sh
+++ b/tests/functional/eval-store.sh
@@ -11,7 +11,16 @@ rm -rf "$eval_store"
nix build -f dependencies.nix --eval-store "$eval_store" -o "$TEST_ROOT/result"
[[ -e $TEST_ROOT/result/foobar ]]
-(! ls $NIX_STORE_DIR/*.drv)
+if [[ ! -n "${NIX_TESTS_CA_BY_DEFAULT:-}" ]]; then
+ # Resolved CA derivations are written to store for building
+ #
+ # TODO when we something more systematic
+ # (https://github.com/NixOS/nix/issues/5025) that distinguishes
+ # between scratch storage for building and the final destination
+ # store, we'll be able to make this unconditional again -- resolved
+ # derivations should only appear in the scratch store.
+ (! ls $NIX_STORE_DIR/*.drv)
+fi
ls $eval_store/nix/store/*.drv
clearStore
@@ -26,7 +35,10 @@ rm -rf "$eval_store"
nix-build dependencies.nix --eval-store "$eval_store" -o "$TEST_ROOT/result"
[[ -e $TEST_ROOT/result/foobar ]]
-(! ls $NIX_STORE_DIR/*.drv)
+if [[ ! -n "${NIX_TESTS_CA_BY_DEFAULT:-}" ]]; then
+ # See above
+ (! ls $NIX_STORE_DIR/*.drv)
+fi
ls $eval_store/nix/store/*.drv
clearStore