aboutsummaryrefslogtreecommitdiff
path: root/tests/remote-store.sh
diff options
context:
space:
mode:
authorregnat <rg@regnat.ovh>2020-11-10 10:43:33 +0100
committerregnat <rg@regnat.ovh>2021-03-16 14:20:41 +0100
commit5716345adf2e794fd62229ea52352e74e92e8e63 (patch)
tree3712c69131d9a84b39cbe4e7f464078fa060af4d /tests/remote-store.sh
parent338f2710580b334a754fad28b88c5cb137c83352 (diff)
Add a test ensuring compatibility with an old daemon
This requires adding `nix` to its own closure which is a bit unfortunate, but as it is optional (the test will be disabled if `OUTER_NIX` is unset) it shouldn't be too much of an issue. (Ideally this should go in another derivation so that we can build Nix and run the test independently, but as the tests are running in the same derivation as the build it's a bit complicated to do so).
Diffstat (limited to 'tests/remote-store.sh')
-rw-r--r--tests/remote-store.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/remote-store.sh b/tests/remote-store.sh
index f7ae1a2ed..31210ab47 100644
--- a/tests/remote-store.sh
+++ b/tests/remote-store.sh
@@ -23,12 +23,12 @@ startDaemon
storeCleared=1 NIX_REMOTE_=$NIX_REMOTE $SHELL ./user-envs.sh
+nix-store --gc --max-freed 1K
+
nix-store --dump-db > $TEST_ROOT/d1
NIX_REMOTE= nix-store --dump-db > $TEST_ROOT/d2
cmp $TEST_ROOT/d1 $TEST_ROOT/d2
-nix-store --gc --max-freed 1K
-
killDaemon
user=$(whoami)