summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim@guixotic.coop>2026-06-15 09:51:33 +0900
committerMaxim Cournoyer <maxim@guixotic.coop>2026-06-15 10:11:03 +0900
commit2c646830c1de33fba8e761b86a173041150a030c (patch)
treed2f4a36bb38bada3aa9b7066af22d4c5e11a50d0 /tests
parent07e3d705d5892edc4fe512aa7673f3e3b6626346 (diff)
tests: Check preserved environment value.
* tests/guix-environment.sh (GUIX_TEST_XYZ): Also control expected value.
Diffstat (limited to 'tests')
-rw-r--r--tests/guix-environment.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/guix-environment.sh b/tests/guix-environment.sh
index 1424ea9a880..56cb289f2ff 100644
--- a/tests/guix-environment.sh
+++ b/tests/guix-environment.sh
@@ -58,9 +58,9 @@ guix environment --bootstrap --ad-hoc guile-bootstrap --pure \
58 --preserve='^GUIX_TEST_A' --preserve='^GUIX_TEST_D' \ 58 --preserve='^GUIX_TEST_A' --preserve='^GUIX_TEST_D' \
59 -- "$SHELL" -c set > "$tmpdir/a" 59 -- "$SHELL" -c set > "$tmpdir/a"
60grep '^PATH=' "$tmpdir/a" 60grep '^PATH=' "$tmpdir/a"
61grep '^GUIX_TEST_ABC=' "$tmpdir/a" 61grep '^GUIX_TEST_ABC=1' "$tmpdir/a"
62grep '^GUIX_TEST_DEF=' "$tmpdir/a" 62grep '^GUIX_TEST_DEF=2' "$tmpdir/a"
63grep '^GUIX_TEST_XYZ=' "$tmpdir/a" && false 63grep '^GUIX_TEST_XYZ=3' "$tmpdir/a" && false
64 64
65# Make sure the exit value is preserved. 65# Make sure the exit value is preserved.
66if guix environment --bootstrap --ad-hoc guile-bootstrap --pure \ 66if guix environment --bootstrap --ad-hoc guile-bootstrap --pure \