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 <tazjin@tvl.su>
This commit is contained in:
Florian Klink 2024-01-23 15:04:48 +02:00 committed by flokli
parent 14097aeba6
commit 8e517bc8d0
3 changed files with 2 additions and 0 deletions

View file

@ -40,6 +40,8 @@ mod mock_builtins {
}
fn eval_test(code_path: PathBuf, expect_success: bool) {
std::env::set_var("TEST_VAR", "foo"); // for eval-okay-getenv.nix
eprintln!("path: {}", code_path.display());
assert_eq!(
code_path.extension().unwrap(),