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 61dc677 commit 94198d3Copy full SHA for 94198d3
test/e2e/e2e_suite_test.go
@@ -109,8 +109,6 @@ var _ = ginkgo.BeforeSuite(func() {
109
kubeconfig := filepath.Join(os.Getenv("HOME"), ".kube", "config")
110
os.Setenv(kubeconfigEnvVar, kubeconfig)
111
}
112
- handleFlags()
113
- framework.AfterReadingAllFlags(&framework.TestContext)
114
115
options := nfs.DriverOptions{
116
NodeID: nodeID,
@@ -215,6 +213,12 @@ func execTestCmd(cmds []testCmd) {
215
213
216
214
217
+func TestMain(m *testing.M) {
+ handleFlags()
218
+ framework.AfterReadingAllFlags(&framework.TestContext)
219
+ os.Exit(m.Run())
220
+}
221
+
222
func TestE2E(t *testing.T) {
223
gomega.RegisterFailHandler(ginkgo.Fail)
224
ginkgo.RunSpecs(t, "E2E Suite")
0 commit comments