mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
tests: Make tests inside container reproducible.
* tests/guix-home.sh: Make tests inside container reproducible. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
3b1510b8b9
commit
4337e8466e
1 changed files with 4 additions and 1 deletions
|
@ -107,7 +107,10 @@ EOF
|
||||||
|
|
||||||
if container_supported
|
if container_supported
|
||||||
then
|
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 -- true
|
||||||
! guix home container home.scm -- false
|
! guix home container home.scm -- false
|
||||||
test "$(guix home container home.scm -- echo '$HOME')" = "$HOME"
|
test "$(guix home container home.scm -- echo '$HOME')" = "$HOME"
|
||||||
|
|
Loading…
Reference in a new issue