From f5c62f106d598b1edca48cdb623345af34348e5e Mon Sep 17 00:00:00 2001 From: Ting-Wei Lan Date: Sat, 18 Mar 2023 22:54:54 +0800 Subject: [PATCH] tests: Fix guix-home.sh when guix isn't installed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- tests/guix-home.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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