tests: Make the STORE test more robust in a "pure" environment.
authorLeo Famulari <leo@famulari.name>
Thu, 11 Feb 2021 20:25:42 +0000 (15:25 -0500)
committerLeo Famulari <leo@famulari.name>
Thu, 18 Mar 2021 19:16:07 +0000 (15:16 -0400)
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".

tests/store.scm

index cda0e03..9c25adf 100644 (file)
@@ -50,7 +50,7 @@
   (open-connection-for-tests))
 
 (define %shell
-  (or (getenv "SHELL") (getenv "CONFIG_SHELL")))
+  (or (getenv "SHELL") (getenv "CONFIG_SHELL") "/bin/sh"))
 
 \f
 (test-begin "store")