mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
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:
parent
5383e01d2a
commit
eedfb593a9
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user