diff options
author | Andrew Tropin <andrew@trop.in> | 2022-08-02 08:40:31 +0300 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2022-08-05 15:28:03 +0200 |
commit | 4337e8466e142da60b9ac1f46d985c875e7fbe15 (patch) | |
tree | fe10dc66080210e9c8cf33b4a88d43f080e79f89 /tests | |
parent | 3b1510b8b9033068e4f6fa842c674824fdadc7a8 (diff) | |
download | guix-4337e8466e142da60b9ac1f46d985c875e7fbe15.tar.gz guix-4337e8466e142da60b9ac1f46d985c875e7fbe15.zip |
tests: Make tests inside container reproducible.
* tests/guix-home.sh: Make tests inside container reproducible.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/guix-home.sh | 5 |
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" |