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:
parent
14097aeba6
commit
8e517bc8d0
3 changed files with 2 additions and 0 deletions
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue