Skip to content

Commit

Permalink
Initialize the run error when doing a failed tests retry (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
TAGraves authored Nov 21, 2024
1 parent da59a89 commit 691a2b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/cli/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ func (s Service) RunSuite(ctx context.Context, cfg RunConfig) (finalErr error) {
cfg.FlakyRetries = 1
}

// start with runErr in an error state to represent the error from the previous task attempt
runErr = errors.NewExecutionError(1, "test suite had failed tests")

largestGroupNumberPreviouslySeen := 0
for _, derivedFrom := range testResults.DerivedFrom {
if derivedFrom.GroupNumber > largestGroupNumberPreviouslySeen {
Expand Down

0 comments on commit 691a2b5

Please sign in to comment.