Skip to content

Commit af879ae

Browse files
authored
Merge pull request kubernetes#127779 from soltysh/update_test_command
Print tested command only once
2 parents b42772c + cabf048 commit af879ae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/e2e/framework/util.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,9 @@ func StartCmdAndStreamOutput(cmd *exec.Cmd) (stdout, stderr io.ReadCloser, err e
585585
if err != nil {
586586
return
587587
}
588-
Logf("Asynchronously running '%s %s'", cmd.Path, strings.Join(cmd.Args, " "))
588+
// cmd.Args contains command itself as 0th argument, so it's sufficient to
589+
// print 1st and latter arguments
590+
Logf("Asynchronously running '%s %s'", cmd.Path, strings.Join(cmd.Args[1:], " "))
589591
err = cmd.Start()
590592
return
591593
}

0 commit comments

Comments
 (0)