Skip to content

Commit cabf048

Browse files
committed
Print tested command only once
1 parent 22a30e7 commit cabf048

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)