about summary refs log tree commit diff
path: root/tests/init.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/init.sh')
-rw-r--r--tests/init.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/init.sh b/tests/init.sh
index 6fa4f815bfe5..19a12c1e2d9e 100644
--- a/tests/init.sh
+++ b/tests/init.sh
@@ -25,6 +25,9 @@ fsync-metadata = false
 !include nix.conf.extra.not-there
 EOF
 
+# Initialise the database.
+nix-store --init
+
 # Did anything happen?
 test -e "$NIX_STATE_DIR"/db/db.sqlite