summaryrefslogtreecommitdiffhomepage
path: root/test/packetimpact/testbench/testbench.go
diff options
context:
space:
mode:
authorSam Balana <sbalana@google.com>2021-06-04 16:44:50 -0700
committergVisor bot <gvisor-bot@google.com>2021-06-04 16:47:50 -0700
commita2d340739649862a23d86f3e32f1bb3b928697ef (patch)
tree5528a1a710b6455cb5571443c5fbea56fe89d986 /test/packetimpact/testbench/testbench.go
parentfb745d7d9d73482b5b9edce380e4564d9b49d783 (diff)
Forward verbose flag to packetimpact tester
Forwards the testing verbose flag to the packetimpact test runner. This is necessary for debugging inside packetimpact tests. When this flag is present, all t.Logs in the packetimpact test wil be shown in the resulting test output. PiperOrigin-RevId: 377614550
Diffstat (limited to 'test/packetimpact/testbench/testbench.go')
-rw-r--r--test/packetimpact/testbench/testbench.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/packetimpact/testbench/testbench.go b/test/packetimpact/testbench/testbench.go
index d0efbcc08..caa389780 100644
--- a/test/packetimpact/testbench/testbench.go
+++ b/test/packetimpact/testbench/testbench.go
@@ -132,6 +132,7 @@ func registerFlags(fs *flag.FlagSet) {
// Initialize initializes the testbench, it parse the flags and sets up the
// pool of test networks for testbench's later use.
func Initialize(fs *flag.FlagSet) {
+ testing.Init()
registerFlags(fs)
flag.Parse()
if err := loadDUTInfos(); err != nil {