We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d9b126 commit 89bd739Copy full SHA for 89bd739
pkg/test/extensions/labels.go
@@ -1,6 +1,8 @@
1
package extensions
2
3
import (
4
+ "fmt"
5
+
6
et "github.com/openshift-eng/openshift-tests-extension/pkg/extension/extensiontests"
7
)
8
@@ -23,7 +25,11 @@ func addLabelsToSpecs(specs et.ExtensionTestSpecs) {
23
25
selectFunctions = append(selectFunctions, et.NameContains(name))
24
26
}
27
- //TODO: once annotation logic has been removed, it might also be necessary to annotate the test name with the label as well
- specs.SelectAny(selectFunctions).AddLabel(label)
28
+ // Add the label AND append it to the name
29
+ matching := specs.SelectAny(selectFunctions)
30
+ for _, spec := range matching {
31
+ spec.Name = fmt.Sprintf("%s %s", spec.Name, label)
32
+ spec.Labels.Insert(label)
33
+ }
34
35
0 commit comments