Skip to content

Commit

Permalink
e2e/setup: fix context cancellation if parallel=1
Browse files Browse the repository at this point in the history
If parallel=1 interrupt does not break the loop.
  • Loading branch information
mmatczuk committed Apr 5, 2024
1 parent c94367f commit eacbcf1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions e2e/setup/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ func (r *Runner) Run(ctx context.Context) error {
}

for i := range setups {
if ctx.Err() != nil {
break
}

s := &setups[i]

if r.SetupRegexp != nil && !r.SetupRegexp.MatchString(s.Name) {
Expand Down

0 comments on commit eacbcf1

Please sign in to comment.