aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tropin <andrew@trop.in>2022-08-02 08:40:31 +0300
committerLudovic Courtès <ludo@gnu.org>2022-08-05 15:28:03 +0200
commit4337e8466e142da60b9ac1f46d985c875e7fbe15 (patch)
treefe10dc66080210e9c8cf33b4a88d43f080e79f89
parent3b1510b8b9033068e4f6fa842c674824fdadc7a8 (diff)
downloadguix-4337e8466e142da60b9ac1f46d985c875e7fbe15.tar
guix-4337e8466e142da60b9ac1f46d985c875e7fbe15.tar.gz
tests: Make tests inside container reproducible.
* tests/guix-home.sh: Make tests inside container reproducible. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
-rw-r--r--tests/guix-home.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/guix-home.sh b/tests/guix-home.sh
index 1d1acbfd6e..d5e2dadbb5 100644
--- a/tests/guix-home.sh
+++ b/tests/guix-home.sh
@@ -107,7 +107,10 @@ EOF
if container_supported
then
- # Run the home in a container.
+ # Run the home in a container. Always use bash inside container for
+ # reproducibility of the tests.
+ # TODO: Make container independent from external environment variables.
+ SHELL=bash
guix home container home.scm -- true
! guix home container home.scm -- false
test "$(guix home container home.scm -- echo '$HOME')" = "$HOME"