From eedfb593a983e29203ed0bd7656ddaf8890ab152 Mon Sep 17 00:00:00 2001 From: Dave Chen Date: Mon, 16 Mar 2020 10:24:15 +0800 Subject: [PATCH] Respect flags of testing package `go test -c -o "perf.test"` `./perf.test --help` doesn't understand "help" flag without calling `flag.Parse` explicitly. --- test/integration/scheduler_perf/main_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/integration/scheduler_perf/main_test.go b/test/integration/scheduler_perf/main_test.go index 16275396eba..5abe66a8f8a 100644 --- a/test/integration/scheduler_perf/main_test.go +++ b/test/integration/scheduler_perf/main_test.go @@ -17,11 +17,13 @@ limitations under the License. package benchmark import ( + "flag" "testing" "k8s.io/kubernetes/test/integration/framework" ) func TestMain(m *testing.M) { + flag.Parse() framework.EtcdMain(m.Run) }