summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorZeling Feng <zeling@google.com>2020-09-23 16:49:33 -0700
committergVisor bot <gvisor-bot@google.com>2020-09-23 16:51:34 -0700
commitc3c66ea428c8f56ff64e415961035feffef718f3 (patch)
tree99acf74dc2b0cc9ee6ce77a33b2bc4c7e4ec3a69
parentd00207ff482fd5cfa607d37979b5455f41a86e3b (diff)
Clean up flag.* usage in packetimpact's runner.RegisterFlags
PiperOrigin-RevId: 333400865
-rw-r--r--test/packetimpact/runner/dut.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/packetimpact/runner/dut.go b/test/packetimpact/runner/dut.go
index 96a0fb6c8..59bb68eb1 100644
--- a/test/packetimpact/runner/dut.go
+++ b/test/packetimpact/runner/dut.go
@@ -69,8 +69,8 @@ func RegisterFlags(fs *flag.FlagSet) {
fs.BoolVar(&native, "native", false, "whether the test should be run natively")
fs.StringVar(&testbenchBinary, "testbench_binary", "", "path to the testbench binary")
fs.BoolVar(&tshark, "tshark", false, "use more verbose tshark in logs instead of tcpdump")
- flag.Var(&extraTestArgs, "extra_test_arg", "extra arguments to pass to the testbench")
- flag.BoolVar(&expectFailure, "expect_failure", false, "expect that the test will fail when run")
+ fs.Var(&extraTestArgs, "extra_test_arg", "extra arguments to pass to the testbench")
+ fs.BoolVar(&expectFailure, "expect_failure", false, "expect that the test will fail when run")
}
// CtrlPort is the port that posix_server listens on.