debug: ignore invalid target flags (#7860)

This commit is contained in:
Calvin Leung Huang
2019-11-11 15:32:11 -08:00
committed by Brian Kassouf
parent 0e7604ca50
commit fcf30cc328
2 changed files with 17 additions and 0 deletions

View File

@@ -61,6 +61,16 @@ func TestDebugCommand_Run(t *testing.T) {
"Too many arguments",
1,
},
{
"invalid_target",
[]string{
"-duration=1s",
fmt.Sprintf("-output=%s/too_many_args", testDir),
"-target=foo",
},
"Ignoring invalid targets: foo",
0,
},
}
for _, tc := range cases {