fix(tvix/eval): nix_tests.rs's eval_test requires impure flag

This fixes the following command:
'cargo test --no-default-features --features nix_tests'

Change-Id: I9883c39e1e428c72a0e7e0b75a73c8ed734abd3b
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11740
Reviewed-by: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
This commit is contained in:
Ilan Joselevich 2024-05-30 20:28:01 +03:00
parent 5405ed9dc6
commit be624daf13

View file

@ -35,6 +35,7 @@ mod mock_builtins {
} }
} }
#[cfg(feature = "impure")]
fn eval_test(code_path: PathBuf, expect_success: bool) { fn eval_test(code_path: PathBuf, expect_success: bool) {
std::env::set_var("TEST_VAR", "foo"); // for eval-okay-getenv.nix std::env::set_var("TEST_VAR", "foo"); // for eval-okay-getenv.nix