Skip to content

Commit ea6eff3

Browse files
committed
cleanup label generation
1 parent e6e59b2 commit ea6eff3

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

openshift-hack/e2e/label/label.go

-22
Original file line numberDiff line numberDiff line change
@@ -38,28 +38,6 @@ func Run(otePath string) {
3838
contents := fmt.Sprintf(`
3939
package generated
4040
41-
import (
42-
"fmt"
43-
"strings"
44-
45-
"github.com/onsi/ginkgo/v2"
46-
"github.com/onsi/ginkgo/v2/types"
47-
)
48-
49-
func init() {
50-
ginkgo.GetSuite().SetAnnotateFn(func(name string, node types.TestSpec) {
51-
if newLabels, ok := Labels[name]; ok {
52-
node.AppendText(strings.Replace(newLabels, ",", " ", -1))
53-
} else {
54-
// If the name isn't found in the generated labels file, it is because the test has been disabled via OTE
55-
node.AppendText("[Disabled:missing]")
56-
}
57-
if strings.Contains(name, "Kubectl client Kubectl prune with applyset should apply and prune objects") {
58-
fmt.Printf("Trying to annotate %%q\n", name)
59-
}
60-
61-
})
62-
}
6341
var Labels = map[string]string{
6442
%s,
6543
}

0 commit comments

Comments
 (0)