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ć authored and oleiade committed Jan 10, 2022
1 parent 6cde38c commit 1ad2e74
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 @@ -283,11 +283,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 1ad2e74

Please sign in to comment.