forked from lix-project/hydra
tests: Make the external destination store optional
Co-authored-by: Graham Christensen <graham@grahamc.com>
This commit is contained in:
parent
0d3977866e
commit
7af63658f1
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue