summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw44@gmail.com>2023-03-18 22:54:54 +0800
committerLudovic Courtès <ludo@gnu.org>2023-03-26 23:25:34 +0200
commitf5c62f106d598b1edca48cdb623345af34348e5e (patch)
tree02af1411a24b1b4e940a6f8eeb05a0f741598a73 /tests
parentb4fbeae3d90a5d0f8146441772436df2eb471491 (diff)
downloadguix-f5c62f106d598b1edca48cdb623345af34348e5e.tar.gz
tests: Fix guix-home.sh when guix isn't installed
* tests/guix-home.sh: Reorder NIX_STORE_DIR variable definition to
prevent guix from crashing due to missing /gnu/store.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/guix-home.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/guix-home.sh b/tests/guix-home.sh
index 3151f66683..11b068ca43 100644
--- a/tests/guix-home.sh
+++ b/tests/guix-home.sh
@@ -36,8 +36,8 @@ container_supported ()
     fi
 }
 
-NIX_STORE_DIR="$(guile -c '(use-modules (guix config))(display %storedir)')"
 localstatedir="$(guile -c '(use-modules (guix config))(display %localstatedir)')"
+NIX_STORE_DIR="$(guile -c '(use-modules (guix config))(display %storedir)')"
 GUIX_DAEMON_SOCKET="$localstatedir/guix/daemon-socket/socket"
 export NIX_STORE_DIR GUIX_DAEMON_SOCKET