~ruther/guix-local

4337e8466e142da60b9ac1f46d985c875e7fbe15 — Andrew Tropin 3 years ago 3b1510b
tests: Make tests inside container reproducible.

* tests/guix-home.sh: Make tests inside container reproducible.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
1 files changed, 4 insertions(+), 1 deletions(-)

M tests/guix-home.sh
M tests/guix-home.sh => tests/guix-home.sh +4 -1
@@ 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"