From cabf04828e7f2b33cea7cb23e7fe3dc158d990eb Mon Sep 17 00:00:00 2001 From: Maciej Szulik Date: Tue, 1 Oct 2024 15:28:55 +0200 Subject: [PATCH] Print tested command only once --- test/e2e/framework/util.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/e2e/framework/util.go b/test/e2e/framework/util.go index cc2e77518ba..a6dc9b125d3 100644 --- a/test/e2e/framework/util.go +++ b/test/e2e/framework/util.go @@ -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 }