aboutsummaryrefslogtreecommitdiff
path: root/tests/dump-db.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dump-db.sh')
-rw-r--r--tests/dump-db.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/dump-db.sh b/tests/dump-db.sh
index 57c8c4016..d6eea42aa 100644
--- a/tests/dump-db.sh
+++ b/tests/dump-db.sh
@@ -8,8 +8,7 @@ deps="$(nix-store -qR $TEST_ROOT/result)"
nix-store --dump-db > $TEST_ROOT/dump
-rm -rf $NIX_DB_DIR
-mkdir $NIX_DB_DIR
+rm -rf $NIX_STATE_DIR/db
nix-store --load-db < $TEST_ROOT/dump