Restore --init calls in tests
This commit is contained in:
parent
4cfc131ec4
commit
b71e1fb342
|
@ -53,6 +53,7 @@ clearStore() {
|
|||
mkdir "$NIX_STORE_DIR"
|
||||
rm -rf "$NIX_STATE_DIR"
|
||||
mkdir "$NIX_STATE_DIR"
|
||||
nix-store --init
|
||||
clearProfiles
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue