Skip to content

Commit 0f107dd

Browse files
committed
UPSTREAM: <carry>: Revert "Initialize testContext before enumerating tests"
This reverts commit 05d22e6.
1 parent 6d81ce9 commit 0f107dd

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

openshift-hack/cmd/k8s-tests-ext/k8s-tests.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,6 @@ func main() {
4949
kubeTestsExtension := e.NewExtension("openshift", "payload", "hyperkube")
5050
extensionRegistry.Register(kubeTestsExtension)
5151

52-
// Initialization for kube ginkgo test framework needs to run before all tests are discovered.
53-
// Some tests use the testContext to generate e2e tests.
54-
if err := initializeTestFramework(os.Getenv("TEST_PROVIDER")); err != nil {
55-
panic(err)
56-
}
57-
5852
// Carve up the kube tests into our openshift suites...
5953
kubeTestsExtension.AddSuite(e.Suite{
6054
Name: "kubernetes/conformance/parallel",
@@ -88,6 +82,13 @@ func main() {
8882
panic(err)
8983
}
9084

85+
// Initialization for kube ginkgo test framework needs to run before all tests execute
86+
specs.AddBeforeAll(func() {
87+
if err := initializeTestFramework(os.Getenv("TEST_PROVIDER")); err != nil {
88+
panic(err)
89+
}
90+
})
91+
9192
// Annotations get appended to test names, these are additions to upstream
9293
// tests for controlling skips, suite membership, etc.
9394
//

0 commit comments

Comments
 (0)