Skip to content

Commit

Permalink
Update e2e test splitter regex
Browse files Browse the repository at this point in the history
Signed-off-by: Per Goncalves da Silva <[email protected]>
  • Loading branch information
Per Goncalves da Silva committed Nov 19, 2024
1 parent 0a0cd4d commit 691f677
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/split/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,15 +162,15 @@ func createChunkRegexp(numChunks, printChunk int, specs []string) (string, error
// Write out the regexp to focus chunk specs via `ginkgo -focus <re>`.
var reStr string
if len(chunk) == 1 {
reStr = fmt.Sprintf("%s .*", chunk[0])
reStr = fmt.Sprintf("^%s .*", chunk[0])
} else {
sb := strings.Builder{}
sb.WriteString(chunk[0])
for _, test := range chunk[1:] {
sb.WriteString("|")
sb.WriteString(test)
}
reStr = fmt.Sprintf("(%s) .*", sb.String())
reStr = fmt.Sprintf("^(%s) .*", sb.String())
}

return reStr, nil
Expand Down

0 comments on commit 691f677

Please sign in to comment.