Skip to content

Commit

Permalink
Merge branch 'main' into fix/endless-loop
Browse files Browse the repository at this point in the history
  • Loading branch information
franknstyle authored Oct 18, 2023
2 parents a008fad + eb5ac8a commit e20e6bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/sonobuoy/app/results.go
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,9 @@ func walkForSummary(result *results.Item, statusCounts map[string]int, failList
statusCounts[result.Status]++

if result.Status == results.StatusFailed || result.Status == results.StatusTimeout {
failList = append(failList, result.Name)
// Ginkgo prefixes [It] to the test results name in the junit.xml (ginkgo/#1277)
// The -focus flag does not match test names with [It] flag, we must manually strip it
failList = append(failList, strings.TrimPrefix(result.Name, "[It]"))
}

return statusCounts, failList
Expand Down

0 comments on commit e20e6bb

Please sign in to comment.