mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 14:06:16 +02:00
Restore --init calls in tests
This commit is contained in:
parent
4cfc131ec4
commit
b71e1fb342
2 changed files with 4 additions and 0 deletions
|
@ -53,6 +53,7 @@ clearStore() {
|
||||||
mkdir "$NIX_STORE_DIR"
|
mkdir "$NIX_STORE_DIR"
|
||||||
rm -rf "$NIX_STATE_DIR"
|
rm -rf "$NIX_STATE_DIR"
|
||||||
mkdir "$NIX_STATE_DIR"
|
mkdir "$NIX_STATE_DIR"
|
||||||
|
nix-store --init
|
||||||
clearProfiles
|
clearProfiles
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,9 @@ fsync-metadata = false
|
||||||
!include nix.conf.extra.not-there
|
!include nix.conf.extra.not-there
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
# Initialise the database.
|
||||||
|
nix-store --init
|
||||||
|
|
||||||
# Did anything happen?
|
# Did anything happen?
|
||||||
test -e "$NIX_STATE_DIR"/db/db.sqlite
|
test -e "$NIX_STATE_DIR"/db/db.sqlite
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue