From 7af63658f15b1c9abeac195ab466f9320a906415 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophane=20Hufschmitt?= Date: Thu, 29 Apr 2021 07:06:55 +0200 Subject: [PATCH] tests: Make the external destination store optional Co-authored-by: Graham Christensen --- t/lib/Setup.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/t/lib/Setup.pm b/t/lib/Setup.pm index ba34bb1c..28181e96 100644 --- a/t/lib/Setup.pm +++ b/t/lib/Setup.pm @@ -54,7 +54,9 @@ sub test_init { $ENV{'HYDRA_CONFIG'} = "$dir/hydra.conf"; open(my $fh, '>', $ENV{'HYDRA_CONFIG'}) or die "Could not open file '" . $ENV{'HYDRA_CONFIG'}. " $!"; - print $fh "store_uri = file:$dir/nix/dest-store\n"; + if ($opts{'use_external_destination_store'} // 1) { + print $fh "store_uri = file:$dir/nix/dest-store\n" + } print $fh $opts{'hydra_config'} || ""; close $fh;