Skip to content

Commit

Permalink
When there are no tests selected then just return
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszo committed Jul 16, 2018
1 parent 7724a0a commit d66e754
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/longevity/longevity.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ func main() {
instances = append(instances, longevity.GetStressTests(controller)...)
}

if len(instances) == 0 {
glog.Fatal("No tests selected. Quitting...")
}

err = longevity.Run(controller, instances)
if err != nil {
glog.Fatal(err)
Expand Down

0 comments on commit d66e754

Please sign in to comment.