summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorLeo Famulari <leo@famulari.name>2021-02-11 15:25:42 -0500
committerLeo Famulari <leo@famulari.name>2021-03-18 15:16:07 -0400
commit0d8d499036f632e03f63bdaf36b02861ea52b3e6 (patch)
tree859c92d084849d173ed9035369939b6d7da626b3 /tests
parentefe7a17406ef3161da1d2bf3069ed456d811ae2f (diff)
downloadguix-0d8d499036f632e03f63bdaf36b02861ea52b3e6.tar.gz
tests: Make the STORE test more robust in a "pure" environment.
Otherwise, the test crashes (not fails) when run in `guix environment --pure guix`.

Fixes <https://bugs.gnu.org/46445>.

* tests/store.scm (%shell): Fallback to "/bin/sh".
Diffstat (limited to 'tests')
-rw-r--r--tests/store.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/store.scm b/tests/store.scm
index cda0e0302f..9c25adf5e9 100644
--- a/tests/store.scm
+++ b/tests/store.scm
@@ -50,7 +50,7 @@
   (open-connection-for-tests))
 
 (define %shell
-  (or (getenv "SHELL") (getenv "CONFIG_SHELL")))
+  (or (getenv "SHELL") (getenv "CONFIG_SHELL") "/bin/sh"))
 
 
 (test-begin "store")