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.
2 parents cee00e9 + 0b32683 commit 1772446Copy full SHA for 1772446
test/e2e_kubeadm/e2e_kubeadm_suite_test.go
@@ -33,15 +33,12 @@ import (
33
e2econfig "k8s.io/kubernetes/test/e2e/framework/config"
34
)
35
36
-func init() {
+func TestMain(m *testing.M) {
37
+ // Copy go flags in TestMain, to ensure go test flags are registered (no longer available in init() as of go1.13)
38
e2econfig.CopyFlags(e2econfig.Flags, flag.CommandLine)
39
framework.RegisterCommonFlags(flag.CommandLine)
40
framework.RegisterClusterFlags(flag.CommandLine)
-
41
pflag.CommandLine.AddGoFlagSet(flag.CommandLine)
42
-}
43
44
-func TestMain(m *testing.M) {
45
pflag.Parse()
46
framework.AfterReadingAllFlags(&framework.TestContext)
47
os.Exit(m.Run())
0 commit comments