From 519c3b7803c48bfbb42053ab8edf7e052071be5f Mon Sep 17 00:00:00 2001 From: Josselin Poiret Date: Fri, 11 Aug 2023 14:22:44 +0200 Subject: [PATCH] tests: guix-shell: Use bash instead of user's $SHELL. * tests/guix-shell.sh (fd_list): Use bash instead of $SHELL. Some other shells have trouble not opening too many fds. Also, bash in an implicit input of guix, so it should always be available. --- tests/guix-shell.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/guix-shell.sh b/tests/guix-shell.sh index ed368515eba..2f5fd868092 100644 --- a/tests/guix-shell.sh +++ b/tests/guix-shell.sh @@ -48,7 +48,7 @@ guix shell -s armhf-linux intelmetool -n && false # opens a couple of extra FDs. initial_fd_list="$(echo /proc/$$/fd/*)" fd_list="$(guix shell --bootstrap guile-bootstrap -- \ - "$SHELL" -c 'echo /proc/$$/fd/*')" + bash -c 'echo /proc/$$/fd/*')" test "$(echo $fd_list | wc -w)" -le "$(echo $initial_fd_list | wc -w)" # Ignoring unauthorized files.