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>
This commit is contained in:
Ting-Wei Lan 2023-03-18 22:54:54 +08:00 committed by Ludovic Courtès
parent b4fbeae3d9
commit f5c62f106d
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5

View File

@ -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