Skip to content

Commit

Permalink
Show end-of-test summary when test is interrupted
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Mirić committed Sep 17, 2021
1 parent c2455cc commit 710cfed
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,11 +281,8 @@ a commandline interface for interacting with it.`,
if common.IsInterruptError(err) {
interrupt = err
}
if !conf.Linger.Bool {
if interrupt == nil {
return errext.WithExitCodeIfNone(err, exitcodes.GenericEngine)
}
return errext.WithExitCodeIfNone(interrupt, exitcodes.ScriptException)
if !conf.Linger.Bool && interrupt == nil {
return errext.WithExitCodeIfNone(err, exitcodes.GenericEngine)
}
}
runCancel()
Expand Down

0 comments on commit 710cfed

Please sign in to comment.