diff options
author | Marius Bakke <mbakke@fastmail.com> | 2019-03-04 23:05:01 +0100 |
---|---|---|
committer | Marius Bakke <mbakke@fastmail.com> | 2019-03-04 23:05:01 +0100 |
commit | b4d7689f9255b93b9ea02e01dc490f1416f77782 (patch) | |
tree | 82c81af4181d5a31555eb5829ba36e5d1a74f414 /tests | |
parent | dd7ce8643a28f5d633c5f3124de6be897cd5065f (diff) | |
parent | 6d3cff5acacecc240b1d86048e41df3ce26483a5 (diff) | |
download | patches-b4d7689f9255b93b9ea02e01dc490f1416f77782.tar patches-b4d7689f9255b93b9ea02e01dc490f1416f77782.tar.gz |
Merge branch 'staging' into core-updates
Diffstat (limited to 'tests')
-rw-r--r-- | tests/guix-environment.sh | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/tests/guix-environment.sh b/tests/guix-environment.sh index ccbe027c7b..7ea9c200de 100644 --- a/tests/guix-environment.sh +++ b/tests/guix-environment.sh @@ -49,13 +49,13 @@ test -x `sed -r 's/^export PATH="(.*)"/\1/' "$tmpdir/a"`/guile cmp "$tmpdir/a" "$tmpdir/b" -# Check '--inherit'. +# Check '--preserve'. GUIX_TEST_ABC=1 GUIX_TEST_DEF=2 GUIX_TEST_XYZ=3 export GUIX_TEST_ABC GUIX_TEST_DEF GUIX_TEST_XYZ guix environment --bootstrap --ad-hoc guile-bootstrap --pure \ - --inherit='^GUIX_TEST_A' --inherit='^GUIX_TEST_D' \ + --preserve='^GUIX_TEST_A' --preserve='^GUIX_TEST_D' \ -- "$SHELL" -c set > "$tmpdir/a" grep '^PATH=' "$tmpdir/a" grep '^GUIX_TEST_ABC=' "$tmpdir/a" @@ -117,16 +117,6 @@ case "`uname -m`" in ;; esac - -# Same as above, but with deprecated -E flag. -if guix environment --bootstrap --ad-hoc guile-bootstrap --pure \ - -E "guile -c '(exit 42)'" -then - false -else - test $? = 42 -fi - # Make sure we can build the environment of 'guix'. There may be collisions # in its profile (e.g., for 'gzip'), but we have to accept them. guix environment guix --bootstrap -n |