mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-01 01:08:55 +00:00
e2e_kubeadm: fix missing suite --test* flags
For more details see 00e1ffb4e0
.
This commit is contained in:
@@ -33,15 +33,12 @@ import (
|
|||||||
e2econfig "k8s.io/kubernetes/test/e2e/framework/config"
|
e2econfig "k8s.io/kubernetes/test/e2e/framework/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func TestMain(m *testing.M) {
|
||||||
|
// Copy go flags in TestMain, to ensure go test flags are registered (no longer available in init() as of go1.13)
|
||||||
e2econfig.CopyFlags(e2econfig.Flags, flag.CommandLine)
|
e2econfig.CopyFlags(e2econfig.Flags, flag.CommandLine)
|
||||||
framework.RegisterCommonFlags(flag.CommandLine)
|
framework.RegisterCommonFlags(flag.CommandLine)
|
||||||
framework.RegisterClusterFlags(flag.CommandLine)
|
framework.RegisterClusterFlags(flag.CommandLine)
|
||||||
|
|
||||||
pflag.CommandLine.AddGoFlagSet(flag.CommandLine)
|
pflag.CommandLine.AddGoFlagSet(flag.CommandLine)
|
||||||
}
|
|
||||||
|
|
||||||
func TestMain(m *testing.M) {
|
|
||||||
pflag.Parse()
|
pflag.Parse()
|
||||||
framework.AfterReadingAllFlags(&framework.TestContext)
|
framework.AfterReadingAllFlags(&framework.TestContext)
|
||||||
os.Exit(m.Run())
|
os.Exit(m.Run())
|
||||||
|
Reference in New Issue
Block a user