t/lib/Setup.pm: nix_config: default to empty string

This commit is contained in:
Your Name 2021-08-19 16:55:28 -04:00 committed by Graham Christensen
parent 4677a7c894
commit 55b7802b61

View file

@ -50,7 +50,7 @@ sub test_init {
$ENV{'NIX_CONF_DIR'} = "$dir/nix/etc/nix";
make_path($ENV{'NIX_CONF_DIR'});
my $nixconf = "$ENV{'NIX_CONF_DIR'}/nix.conf";
my $nix_config = "sandbox = false\n" . $opts{'nix_config'};
my $nix_config = "sandbox = false\n" . ($opts{'nix_config'} || "");
write_file($nixconf, $nix_config);
$ENV{'HYDRA_CONFIG'} = "$dir/hydra.conf";