Skip to content

Commit

Permalink
UPSTREAM: <carry>: allow annotating with a specific suite
Browse files Browse the repository at this point in the history
If a test specifies a suite, don't append another one to it. We want the
ability to add tests to a particular suite without automatically being
added to parallel conformance.
  • Loading branch information
stbenjam committed Oct 10, 2022
1 parent 3ef6ef3 commit b25e156
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openshift-hack/e2e/annotate/annotate.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ func (r *ginkgoTestRenamer) generateRename(name string, node types.TestSpec) {
}
}

if !r.excludedTestsFilter.MatchString(newName) {
// Append suite name to test, if it doesn't already have one
if !r.excludedTestsFilter.MatchString(newName) && !strings.Contains(newName, "[Suite:") {
isSerial := strings.Contains(newName, "[Serial]")
isConformance := strings.Contains(newName, "[Conformance]")
switch {
Expand Down

0 comments on commit b25e156

Please sign in to comment.