fix: Darwin compat
(cherry picked from commit 711d95877a039bcd5b162604a22d1c051b59a49d)
This commit is contained in:
parent
c7278d429f
commit
122ee75ce3
2 changed files with 8 additions and 5 deletions
|
|
@ -632,7 +632,10 @@ pub fn test_init() {
|
|||
|
||||
// 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.
|
||||
nix_util::settings::set("sandbox-build-dir", "/custom-build-dir-for-test").unwrap();
|
||||
// Only available on linux
|
||||
if cfg!(target_os = "linux") {
|
||||
nix_util::settings::set("sandbox-build-dir", "/custom-build-dir-for-test").unwrap();
|
||||
}
|
||||
std::env::set_var("_NIX_TEST_NO_SANDBOX", "1");
|
||||
|
||||
// The tests run offline
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue