hydra-eval-jobs: Use 'checks' output if there is no 'hydraJobs' output

This commit is contained in:
Eelco Dolstra 2019-06-03 13:55:32 +02:00
parent 9a8880fd28
commit 7936a29364
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -255,7 +255,9 @@ int main(int argc, char * * argv)
auto aHydraJobs = vOutputs->attrs->get(state.symbols.create("hydraJobs"));
if (!aHydraJobs)
throw Error("flake '%s' does not provide any Hydra jobs", flakeRef);
aHydraJobs = vOutputs->attrs->get(state.symbols.create("checks"));
if (!aHydraJobs)
throw Error("flake '%s' does not provide any Hydra jobs or checks", flakeRef);
v = *(*aHydraJobs)->value;