[PATCH] tests: Fix guix-home.sh when guix isn't installed

  • Done
  • quality assurance status badge
Details
2 participants
  • Ting-Wei Lan
  • Ludovic Courtès
Owner
unassigned
Submitted by
Ting-Wei Lan
Severity
normal

Debbugs page

Ting-Wei Lan wrote 2 years ago
(address . guix-patches@gnu.org)(name . Ting-Wei Lan)(address . lantw44@gmail.com)
20230318145454.89946-1-lantw44@gmail.com
* 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(-)

Toggle diff (18 lines)
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

base-commit: 99114eb63895712d2d3e62c5a83e3a1540438f15
--
2.39.2
Ludovic Courtès wrote 2 years ago
(name . Ting-Wei Lan)(address . lantw44@gmail.com)(address . 62259-done@debbugs.gnu.org)
87a5zzb3w9.fsf@gnu.org
Hi,

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

Toggle quote (3 lines)
> * tests/guix-home.sh: Reorder NIX_STORE_DIR variable definition to
> prevent guix from crashing due to missing /gnu/store.

Applied, thanks!

Ludo’.
Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 62259@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 62259
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch
You may also tag this issue. See list of standard tags. For example, to set the confirmed and easy tags
mumi command -t +confirmed -t +easy
Or, remove the moreinfo tag and set the help tag
mumi command -t -moreinfo -t +help