Skip to content

Commit 4d0cee2

Browse files
committed
Revert "filter out k8s tests via code locations rather than suite info"
This reverts commit 9baee95.
1 parent bd5da8b commit 4d0cee2

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

pkg/test/extensions/binary.go

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,7 @@ func InitializeOpenShiftTestsExtensionFramework() (*extension.Registry, *extensi
8686
klog.Infof("Found %d test specs", len(specs))
8787
// Filter out kube tests, vendor filtering isn't working within origin
8888
specs = specs.Select(func(spec *extensiontests.ExtensionTestSpec) bool {
89-
for _, cl := range spec.CodeLocations {
90-
// If there is a CodeLocation for origin, that isn't simply "framework" it is not a vendored test
91-
if strings.Contains(cl, "github.com/openshift/origin/") &&
92-
!strings.Contains(cl, "github.com/openshift/origin/test/extended/util/framework.go") {
93-
return true
94-
}
95-
}
96-
return false
89+
return !strings.Contains(spec.Name, "[Suite:k8s")
9790
})
9891
klog.Infof("%d test specs remain, after filtering out k8s", len(specs))
9992

0 commit comments

Comments
 (0)