forked from lix-project/hydra
HydraTestContext: expose the nix state dir
This commit is contained in:
parent
e351054f61
commit
e4407f8c93
|
@ -69,6 +69,7 @@ sub new {
|
||||||
_db => undef,
|
_db => undef,
|
||||||
db_handle => $pgsql,
|
db_handle => $pgsql,
|
||||||
tmpdir => $dir,
|
tmpdir => $dir,
|
||||||
|
nix_state_dir => "$dir/nix/var/nix",
|
||||||
testdir => abs_path(dirname(__FILE__) . "/.."),
|
testdir => abs_path(dirname(__FILE__) . "/.."),
|
||||||
jobsdir => abs_path(dirname(__FILE__) . "/../jobs")
|
jobsdir => abs_path(dirname(__FILE__) . "/../jobs")
|
||||||
};
|
};
|
||||||
|
@ -115,6 +116,12 @@ sub jobsdir {
|
||||||
return $self->{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.
|
# Create a jobset, evaluate it, and optionally build the jobs.
|
||||||
#
|
#
|
||||||
# In return, you get a hash of all the Builds records, keyed
|
# In return, you get a hash of all the Builds records, keyed
|
||||||
|
|
Loading…
Reference in a new issue