about summary refs log tree commit diff
path: root/tests/dump-db.sh
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-07-27T15·14+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-08-10T16·05+0200
commit2fad86f361d5f6a4896a0364e313f61384945111 (patch)
treec3f119f5260845e5bae15db6c32090521ff3e719 /tests/dump-db.sh
parentbe64fbb50129356a03d8b7fe08d3ef3809a4a82a (diff)
Remove $NIX_DB_DIR
This variable has no reason to exist, given $NIX_STATE_DIR.
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 57c8c401600d..d6eea42aa04e 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