From 55b7802b6138c74f6dd7ac14ab22be9e180480a0 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 19 Aug 2021 16:55:28 -0400 Subject: [PATCH] t/lib/Setup.pm: nix_config: default to empty string --- t/lib/Setup.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/lib/Setup.pm b/t/lib/Setup.pm index 751a81c2..b80eea14 100644 --- a/t/lib/Setup.pm +++ b/t/lib/Setup.pm @@ -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";