HydraTestContext: expose the nix state dir

This commit is contained in:
Graham Christensen 2022-01-21 15:12:10 -05:00
parent e351054f61
commit e4407f8c93

View file

@ -69,6 +69,7 @@ sub new {
_db => undef,
db_handle => $pgsql,
tmpdir => $dir,
nix_state_dir => "$dir/nix/var/nix",
testdir => abs_path(dirname(__FILE__) . "/.."),
jobsdir => abs_path(dirname(__FILE__) . "/../jobs")
};
@ -115,6 +116,12 @@ sub jobsdir {
return $self->{jobsdir};
}
sub nix_state_dir {
my ($self) = @_;
return $self->{nix_state_dir};
}
# Create a jobset, evaluate it, and optionally build the jobs.
#
# In return, you get a hash of all the Builds records, keyed