File tree 1 file changed +7
-6
lines changed
openshift-hack/cmd/k8s-tests-ext 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -49,12 +49,6 @@ func main() {
49
49
kubeTestsExtension := e .NewExtension ("openshift" , "payload" , "hyperkube" )
50
50
extensionRegistry .Register (kubeTestsExtension )
51
51
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
-
58
52
// Carve up the kube tests into our openshift suites...
59
53
kubeTestsExtension .AddSuite (e.Suite {
60
54
Name : "kubernetes/conformance/parallel" ,
@@ -88,6 +82,13 @@ func main() {
88
82
panic (err )
89
83
}
90
84
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
+
91
92
// Annotations get appended to test names, these are additions to upstream
92
93
// tests for controlling skips, suite membership, etc.
93
94
//
You can’t perform that action at this time.
0 commit comments