Merge pull request #127779 from soltysh/update_test_command

Print tested command only once
This commit is contained in:
Kubernetes Prow Robot 2024-10-02 15:07:50 +01:00 committed by GitHub
commit af879aebb1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -585,7 +585,9 @@ func StartCmdAndStreamOutput(cmd *exec.Cmd) (stdout, stderr io.ReadCloser, err e
if err != nil {
return
}
Logf("Asynchronously running '%s %s'", cmd.Path, strings.Join(cmd.Args, " "))
// cmd.Args contains command itself as 0th argument, so it's sufficient to
// print 1st and latter arguments
Logf("Asynchronously running '%s %s'", cmd.Path, strings.Join(cmd.Args[1:], " "))
err = cmd.Start()
return
}