diff options
author | Ludovic Courtès <ludo@gnu.org> | 2019-10-03 22:19:11 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2019-10-03 23:48:59 +0200 |
commit | 5a02f8e3842c19d28f39e5b47d804ef70e1b3160 (patch) | |
tree | 9cc45125f032b6691fccb232f580a2ffe0a91294 /tests/guix-environment-container.sh | |
parent | 9a68b89e8ab47b6e3297dc82bde576f4c70a6a2a (diff) | |
download | patches-5a02f8e3842c19d28f39e5b47d804ef70e1b3160.tar patches-5a02f8e3842c19d28f39e5b47d804ef70e1b3160.tar.gz |
environment: '--container' honors '--preserve'.
* guix/scripts/environment.scm (launch-environment/container): Add
#:white-list parameter and honor it.
(guix-environment): Pass #:white-list to 'launch-environment/container'.
* tests/guix-environment-container.sh: Add test.
Diffstat (limited to 'tests/guix-environment-container.sh')
-rw-r--r-- | tests/guix-environment-container.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/guix-environment-container.sh b/tests/guix-environment-container.sh index 32a5ba1f97..d313f2e734 100644 --- a/tests/guix-environment-container.sh +++ b/tests/guix-environment-container.sh @@ -44,6 +44,11 @@ else test $? = 42 fi +# Make sure '--preserve' is honored. +result="`FOOBAR=42; export FOOBAR; guix environment -C --ad-hoc --bootstrap \ + guile-bootstrap -E ^FOO -- guile -c '(display (getenv \"FOOBAR\"))'`" +test "$result" = "42" + # By default, the UID inside the container should be the same as outside. uid="`id -u`" inner_uid="`guix environment -C --ad-hoc --bootstrap guile-bootstrap \ |