Fix hydra-evaluator --unlock

This commit is contained in:
Eelco Dolstra 2020-02-15 16:40:16 +01:00
parent 345512a6d0
commit 68bdf834ee
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -361,14 +361,15 @@ int main(int argc, char * * argv)
return true; return true;
}); });
if (unlock)
evaluator.unlock();
else {
if (!args.empty()) { if (!args.empty()) {
if (args.size() != 2) throw UsageError("Syntax: hydra-evaluator [<project> <jobset>]"); if (args.size() != 2) throw UsageError("Syntax: hydra-evaluator [<project> <jobset>]");
evaluator.evalOne = JobsetName(args[0], args[1]); evaluator.evalOne = JobsetName(args[0], args[1]);
} }
if (unlock)
evaluator.unlock();
else
evaluator.run(); evaluator.run();
}
}); });
} }