Skip to content

Commit b71e1fb

Browse files
committed
Restore --init calls in tests
1 parent 4cfc131 commit b71e1fb

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tests/common.sh.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ clearStore() {
5353
mkdir "$NIX_STORE_DIR"
5454
rm -rf "$NIX_STATE_DIR"
5555
mkdir "$NIX_STATE_DIR"
56+
nix-store --init
5657
clearProfiles
5758
}
5859

tests/init.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ fsync-metadata = false
2525
!include nix.conf.extra.not-there
2626
EOF
2727

28+
# Initialise the database.
29+
nix-store --init
30+
2831
# Did anything happen?
2932
test -e "$NIX_STATE_DIR"/db/db.sqlite
3033

0 commit comments

Comments
 (0)