diff options
| author | qmuntal <quimmuntal@gmail.com> | 2025-03-20 10:02:31 +0100 |
|---|---|---|
| committer | Quim Muntal <quimmuntal@gmail.com> | 2025-03-20 09:10:13 -0700 |
| commit | e9558d39476199f05bb08e7e32a2df054c3aab1b (patch) | |
| tree | 9f6d5fe1ffaa6ed4b34e874f998bbd9f522c13f9 /src/cmd/dist | |
| parent | a4a5ef08bd15201772021620cc3a8331b30643f5 (diff) | |
| download | go-e9558d39476199f05bb08e7e32a2df054c3aab1b.tar.xz | |
all: use exec.Command.String in test logs
There is no need to manually construct a human-friendly string for
a exec.Command. The String method does that for us.
Change-Id: Iff1033478000bade9cbdc079f6143a7690374258
Reviewed-on: https://go-review.googlesource.com/c/go/+/659475
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/cmd/dist')
| -rw-r--r-- | src/cmd/dist/test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/dist/test.go b/src/cmd/dist/test.go index a380e46c5d..e939768a2f 100644 --- a/src/cmd/dist/test.go +++ b/src/cmd/dist/test.go @@ -1098,7 +1098,7 @@ func (t *tester) dirCmd(dir string, cmdline ...interface{}) *exec.Cmd { cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr if vflag > 1 { - errprintf("%s\n", strings.Join(cmd.Args, " ")) + errprintf("%#q\n", cmd) } return cmd } @@ -1450,7 +1450,7 @@ func (t *tester) runPending(nextTest *distTest) { } } if vflag > 1 { - errprintf("%s\n", strings.Join(w.cmd.Args, " ")) + errprintf("%#q\n", w.cmd) } ended++ <-w.end |
