tests: Make the external destination store optional

Co-authored-by: Graham Christensen <graham@grahamc.com>
This commit is contained in:
Théophane Hufschmitt 2021-04-29 07:06:55 +02:00 committed by regnat
parent 0d3977866e
commit 7af63658f1

View file

@ -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;