From 77c9be2cbf7ec7ff6ed363bfa45ff6e443de7aff Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Tue, 26 Nov 2024 14:52:25 +0100 Subject: [PATCH] maint: Fix nix-expr tests by unsetting build hook (cherry picked from commit 52b6cd6b7867dafe0906184e540c5195ba776ae9) --- rust/nix-expr/src/eval_state.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/nix-expr/src/eval_state.rs b/rust/nix-expr/src/eval_state.rs index de5550f..30eb91a 100644 --- a/rust/nix-expr/src/eval_state.rs +++ b/rust/nix-expr/src/eval_state.rs @@ -532,7 +532,7 @@ pub fn test_init() { // would cause the test suite to reinvokes itself, causing an infinite loop. // While _NIX_TEST_NO_SANDBOX=1 should prevent this, we may also set the // build hook to "" to prevent this. - // settings::set("build-hook", "")?; + nix_util::settings::set("build-hook", "").unwrap(); // When testing in the sandbox, the default build dir would be a parent of the storeDir, // which causes an error. So we set a custom build dir here.