aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorregnat <rg@regnat.ovh>2021-03-16 14:20:10 +0100
committerregnat <rg@regnat.ovh>2021-03-16 14:21:41 +0100
commitbe60c9ef50bf5fa653138802f63727fa0aadf50a (patch)
treedccd4e043d521ef259902ae8d296aa731065a35d /tests
parent81df1b5c687b7606f0159485c33bf5f7e2614eba (diff)
Fix the db-migration test
Diffstat (limited to 'tests')
-rw-r--r--tests/db-migration.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/db-migration.sh b/tests/db-migration.sh
index e6a405770..e0ff7d311 100644
--- a/tests/db-migration.sh
+++ b/tests/db-migration.sh
@@ -1,7 +1,8 @@
# Test that we can successfully migrate from an older db schema
# Only run this if we have an older Nix available
-if [[ -z "$OUTER_NIX" ]]; then
+# XXX: This assumes that the `daemon` package is older than the `client` one
+if [[ -z "$NIX_DAEMON_PACKAGE" ]]; then
exit 0
fi
@@ -9,7 +10,7 @@ source common.sh
# Fill the db using the older Nix
PATH_WITH_NEW_NIX="$PATH"
-export PATH="$OUTER_NIX/bin:$PATH"
+export PATH="$NIX_DAEMON_PACKAGE/bin:$PATH"
clearStore
nix-build simple.nix --no-out-link
nix-store --generate-binary-cache-key cache1.example.org $TEST_ROOT/sk1 $TEST_ROOT/pk1