guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

05/18: tests: Make tests inside container reproducible.


From: guix-commits
Subject: 05/18: tests: Make tests inside container reproducible.
Date: Fri, 5 Aug 2022 09:28:54 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 4337e8466e142da60b9ac1f46d985c875e7fbe15
Author: Andrew Tropin <andrew@trop.in>
AuthorDate: Tue Aug 2 08:40:31 2022 +0300

    tests: Make tests inside container reproducible.
    
    * tests/guix-home.sh: Make tests inside container reproducible.
    
    Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
 tests/guix-home.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]