Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
franknstyle authored Oct 18, 2023
2 parents 7760769 + eb5ac8a commit cd158f4
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 cd158f4

Please sign in to comment.