1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-02 13:31:48 +02:00

Give unit tests access to a $HOME directory

Also, don't try to access cache.nixos.org in the libstore unit tests.
This commit is contained in:
Eelco Dolstra 2025-06-16 12:09:43 +02:00
parent cdb417854b
commit 02e5588bf9
5 changed files with 18 additions and 38 deletions

View file

@ -100,6 +100,7 @@ test(
this_exe,
env : {
'_NIX_TEST_UNIT_DATA': meson.current_source_dir() / 'data',
'HOME': meson.current_build_dir() / 'test-home',
},
protocol : 'gtest',
)