Setup.pm: specify NIX_ env vars for running yath

Otherwise yath will try to use global configuration.
This commit is contained in:
Graham Christensen 2021-04-14 10:18:22 -04:00 committed by Graham Christensen
parent 74d34c0f80
commit c7ac123dc5

View file

@ -56,6 +56,8 @@ sub test_init {
close $fh; close $fh;
$ENV{'NIX_LOG_DIR'} = "$dir/nix/var/log/nix"; $ENV{'NIX_LOG_DIR'} = "$dir/nix/var/log/nix";
$ENV{'NIX_REMOTE_SYSTEMS'} = '';
$ENV{'NIX_REMOTE'} = '';
$ENV{'NIX_STATE_DIR'} = "$dir/nix/var/nix"; $ENV{'NIX_STATE_DIR'} = "$dir/nix/var/nix";
$ENV{'NIX_STORE_DIR'} = "$dir/nix/store"; $ENV{'NIX_STORE_DIR'} = "$dir/nix/store";