forked from lix-project/hydra
Only add the Nix system feature to the test that requires it
This commit is contained in:
parent
abff212d06
commit
f61a13d2db
|
@ -2,7 +2,11 @@ use feature 'unicode_strings';
|
|||
use strict;
|
||||
use Setup;
|
||||
|
||||
my %ctx = test_init();
|
||||
my %ctx = test_init(
|
||||
nix_config => q|
|
||||
system-features = test-system-feature
|
||||
|
|
||||
);
|
||||
|
||||
require Hydra::Schema;
|
||||
require Hydra::Model::DB;
|
||||
|
|
|
@ -48,7 +48,6 @@ sub test_init {
|
|||
my $nixconf = "$ENV{'NIX_CONF_DIR'}/nix.conf";
|
||||
open(my $fh, '>', $nixconf) or die "Could not open file '$nixconf' $!";
|
||||
print $fh "sandbox = false\n";
|
||||
print $fh "system-features = test-system-feature\n";
|
||||
print $fh $opts{'nix_config'} || "";
|
||||
close $fh;
|
||||
|
||||
|
|
Loading…
Reference in a new issue