diff options
| author | Maxim Cournoyer <maxim@guixotic.coop> | 2026-06-15 09:51:33 +0900 |
|---|---|---|
| committer | Maxim Cournoyer <maxim@guixotic.coop> | 2026-06-15 10:11:03 +0900 |
| commit | 2c646830c1de33fba8e761b86a173041150a030c (patch) | |
| tree | d2f4a36bb38bada3aa9b7066af22d4c5e11a50d0 | |
| parent | 07e3d705d5892edc4fe512aa7673f3e3b6626346 (diff) | |
tests: Check preserved environment value.
* tests/guix-environment.sh (GUIX_TEST_XYZ): Also control expected value.
| -rw-r--r-- | tests/guix-environment.sh | 6 |
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" |
| 60 | grep '^PATH=' "$tmpdir/a" | 60 | grep '^PATH=' "$tmpdir/a" |
| 61 | grep '^GUIX_TEST_ABC=' "$tmpdir/a" | 61 | grep '^GUIX_TEST_ABC=1' "$tmpdir/a" |
| 62 | grep '^GUIX_TEST_DEF=' "$tmpdir/a" | 62 | grep '^GUIX_TEST_DEF=2' "$tmpdir/a" |
| 63 | grep '^GUIX_TEST_XYZ=' "$tmpdir/a" && false | 63 | grep '^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. |
| 66 | if guix environment --bootstrap --ad-hoc guile-bootstrap --pure \ | 66 | if guix environment --bootstrap --ad-hoc guile-bootstrap --pure \ |
