Respect flags of testing package

`go test -c -o "perf.test"`
`./perf.test --help` doesn't understand "help" flag without
calling `flag.Parse` explicitly.
This commit is contained in:
Dave Chen 2020-03-16 10:24:15 +08:00
parent 5383e01d2a
commit eedfb593a9

View File

@ -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)
}