about summary refs log tree commit diff
path: root/tvix
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2024-04-29T21·14+0300
committerflokli <flokli@flokli.de>2024-04-29T22·02+0000
commitc192cd04b83d95810968992fbd13a31d59d6b630 (patch)
tree5a92b0f6eece470600a73a7baf160ffff6ca063b /tvix
parentfab9a0727428d9bd999bf78381b0c51e4c4f797b (diff)
feat(tvix/glue/tests): configure <nix NIX_PATH r/8037
This is also needed to make `<nix/fetchurl.nix>` available in the
testsuite.

At some point, we might want to classify different types of tests
excepting a different featureset, but for now, enabling this for all of
glue is fine.

Change-Id: Ided450bbb1f8eb7b66d454bd28bd19b17eb318e4
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11546
Tested-by: BuildkiteCI
Reviewed-by: Connor Brewster <cbrewster@hey.com>
Diffstat (limited to 'tvix')
-rw-r--r--tvix/glue/src/tests/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/tvix/glue/src/tests/mod.rs b/tvix/glue/src/tests/mod.rs
index f18cae37206e..8e1572b6e36e 100644
--- a/tvix/glue/src/tests/mod.rs
+++ b/tvix/glue/src/tests/mod.rs
@@ -14,6 +14,7 @@ use rstest::rstest;
 
 use crate::{
     builtins::{add_derivation_builtins, add_fetcher_builtins, add_import_builtins},
+    configure_nix_path,
     tvix_io::TvixIO,
     tvix_store_io::TvixStoreIO,
 };
@@ -61,6 +62,7 @@ fn eval_test(code_path: PathBuf, expect_success: bool) {
     add_derivation_builtins(&mut eval, tvix_store_io.clone());
     add_fetcher_builtins(&mut eval, tvix_store_io.clone());
     add_import_builtins(&mut eval, tvix_store_io.clone());
+    configure_nix_path(&mut eval, &None);
 
     let result = eval.evaluate(code, Some(code_path.clone()));
     let failed = match result.value {