Skip to content

Commit b25e156

Browse files
committed
UPSTREAM: <carry>: allow annotating with a specific suite
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.
1 parent 3ef6ef3 commit b25e156

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

openshift-hack/e2e/annotate/annotate.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ func (r *ginkgoTestRenamer) generateRename(name string, node types.TestSpec) {
206206
}
207207
}
208208

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

0 commit comments

Comments
 (0)