mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Merge pull request #84937 from neolit123/1.17-fix-kubeadm-test-suite-flags
e2e_kubeadm: fix missing suite --test* flags
This commit is contained in:
commit
1772446c46
@ -33,15 +33,12 @@ import (
|
||||
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)
|
||||
framework.RegisterCommonFlags(flag.CommandLine)
|
||||
framework.RegisterClusterFlags(flag.CommandLine)
|
||||
|
||||
pflag.CommandLine.AddGoFlagSet(flag.CommandLine)
|
||||
}
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
pflag.Parse()
|
||||
framework.AfterReadingAllFlags(&framework.TestContext)
|
||||
os.Exit(m.Run())
|
||||
|
Loading…
Reference in New Issue
Block a user