Skip to content

Commit

Permalink
gemini: Respect fail-fast option for data validation
Browse files Browse the repository at this point in the history
If user did not specify "--fail-fast" command line option, we should not
stop the run.
  • Loading branch information
penberg committed Apr 2, 2019
1 parent 329d790 commit 7118330
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cmd/gemini/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,11 @@ func runJob(f testJob, schema *gemini.Schema, s *gemini.Session, mode string) {
sp.Suffix = fmt.Sprintf(" Running Gemini... %v", testRes)
if testRes.ReadErrors > 0 {
testRes.PrintResult()
fmt.Println("Error in data validation. Exiting.")
cancelWorkers()
return
if failFast {
fmt.Println("Error in data validation. Exiting.")
cancelWorkers()
return
}
}
}
}
Expand Down

0 comments on commit 7118330

Please sign in to comment.