about summary refs log tree commit diff
path: root/tvix/eval/src/tests/nix_tests.rs
diff options
context:
space:
mode:
authorIlan Joselevich <personal@ilanjoselevich.com>2024-05-30T17·28+0300
committerIlan Joselevich <personal@ilanjoselevich.com>2024-05-30T21·52+0000
commitbe624daf1354079f56d16d6f1dae9cfcb7e70382 (patch)
treef1c941bcadff79d72a14a8f6447bd45789c4c0b4 /tvix/eval/src/tests/nix_tests.rs
parent5405ed9dc6ae8b1bc906668209b6aa33ad848a41 (diff)
fix(tvix/eval): nix_tests.rs's eval_test requires impure flag r/8184
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
Diffstat (limited to 'tvix/eval/src/tests/nix_tests.rs')
-rw-r--r--tvix/eval/src/tests/nix_tests.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tvix/eval/src/tests/nix_tests.rs b/tvix/eval/src/tests/nix_tests.rs
index e2c1bcd45553..17968e4bdb09 100644
--- a/tvix/eval/src/tests/nix_tests.rs
+++ b/tvix/eval/src/tests/nix_tests.rs
@@ -35,6 +35,7 @@ mod mock_builtins {
     }
 }
 
+#[cfg(feature = "impure")]
 fn eval_test(code_path: PathBuf, expect_success: bool) {
     std::env::set_var("TEST_VAR", "foo"); // for eval-okay-getenv.nix