Skip to content
Snippets Groups Projects
Commit a53b7696 authored by Alessio Caiazza's avatar Alessio Caiazza
Browse files

review: verify mustn't fail without runners unless filters are provided

parent a09194a5
No related branches found
No related tags found
1 merge request!532Extended verify command with runner selector
......@@ -25,12 +25,13 @@ func (c *VerifyCommand) Execute(context *cli.Context) {
return
}
hasFilters := c.Name != "" || c.RunnerCredentials.UniqueID() != ""
// select runners to verify
toVerify, okRunners := c.selectRunners()
// check if there's something to verify
if len(toVerify) == 0 {
log.Fatalln("No runners to verify")
if hasFilters && len(toVerify) == 0 {
log.Fatalln("No runner matches the filtering parameters")
return
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment