diff mbox series

[bug#62259] tests: Fix guix-home.sh when guix isn't installed

Message ID 20230318145454.89946-1-lantw44@gmail.com
State New
Headers show
Series [bug#62259] tests: Fix guix-home.sh when guix isn't installed | expand

Commit Message

Ting-Wei Lan March 18, 2023, 2:54 p.m. UTC
* tests/guix-home.sh: Reorder NIX_STORE_DIR variable definition to
prevent guix from crashing due to missing /gnu/store.
---
 tests/guix-home.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


base-commit: 99114eb63895712d2d3e62c5a83e3a1540438f15

Comments

Ludovic Courtès March 26, 2023, 9:26 p.m. UTC | #1
Hi,

Ting-Wei Lan <lantw44@gmail.com> skribis:

> * tests/guix-home.sh: Reorder NIX_STORE_DIR variable definition to
> prevent guix from crashing due to missing /gnu/store.

Applied, thanks!

Ludo’.
diff mbox series

Patch

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