HydraTestContext: expose the nix state dir
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user