From 8e517bc8d04da60f1851aa44000ad7400817e522 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Tue, 23 Jan 2024 15:04:48 +0200 Subject: fix(tvix/eval/tests): fix eval-okay-getenv This relies on TEST_VAR=foo being set to "foo". Nix does this in tests/functional/lang.sh, we do it in the test suite. Change-Id: I7ffa9ed27124530b7758aeadf07c79477656f34f Reviewed-on: https://cl.tvl.fyi/c/depot/+/10683 Tested-by: BuildkiteCI Reviewed-by: tazjin --- tvix/eval/src/tests/nix_tests/eval-okay-getenv.nix | 1 + 1 file changed, 1 insertion(+) create mode 100644 tvix/eval/src/tests/nix_tests/eval-okay-getenv.nix (limited to 'tvix/eval/src/tests/nix_tests/eval-okay-getenv.nix') diff --git a/tvix/eval/src/tests/nix_tests/eval-okay-getenv.nix b/tvix/eval/src/tests/nix_tests/eval-okay-getenv.nix new file mode 100644 index 000000000000..4cfec5f553d9 --- /dev/null +++ b/tvix/eval/src/tests/nix_tests/eval-okay-getenv.nix @@ -0,0 +1 @@ +builtins.getEnv "TEST_VAR" + (if builtins.getEnv "NO_SUCH_VAR" == "" then "bar" else "bla") -- cgit 1.4.1