From 7936a293643ae52b1af1747ee806316e28133b86 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 3 Jun 2019 13:55:32 +0200 Subject: [PATCH] hydra-eval-jobs: Use 'checks' output if there is no 'hydraJobs' output --- src/hydra-eval-jobs/hydra-eval-jobs.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hydra-eval-jobs/hydra-eval-jobs.cc b/src/hydra-eval-jobs/hydra-eval-jobs.cc index e104fb5f..a309abc7 100644 --- a/src/hydra-eval-jobs/hydra-eval-jobs.cc +++ b/src/hydra-eval-jobs/hydra-eval-jobs.cc @@ -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;