diff options
author | Russ Cox <rsc@golang.org> | 2017-12-01 13:42:53 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2017-12-01 21:06:23 +0000 |
commit | 7ef9f7250e2abece8b688cc4fcadc3e32d93f0fc (patch) | |
tree | 1d65bb9bfd3615f1ff3eaf4e20f489ba244a1da6 /src/cmd/test2json | |
parent | 232b2e3352b0e3913421dc43cb29003eac1c5130 (diff) | |
download | go-7ef9f7250e2abece8b688cc4fcadc3e32d93f0fc.tar.gz go-7ef9f7250e2abece8b688cc4fcadc3e32d93f0fc.zip |
cmd/go: fix missing conversions in -json output
1. Apply JSON conversion when -bench is in use.
2. Apply JSON conversion to "no test files" result.
3. Apply JSON conversion to test case-ending SKIP status.
Fixes #22769.
Fixes #22790.
Change-Id: I67ad656fc58bacae8c51d23b1e6d543cad190f08
Reviewed-on: https://go-review.googlesource.com/81535
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/cmd/test2json')
-rw-r--r-- | src/cmd/test2json/main.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/test2json/main.go b/src/cmd/test2json/main.go index 3d7c5601a3..14004977f5 100644 --- a/src/cmd/test2json/main.go +++ b/src/cmd/test2json/main.go @@ -25,7 +25,7 @@ // // type TestEvent struct { // Time time.Time // encodes as an RFC3339-format string -// Event string +// Action string // Package string // Test string // Elapsed float64 // seconds @@ -35,7 +35,7 @@ // The Time field holds the time the event happened. // It is conventionally omitted for cached test results. // -// The Event field is one of a fixed set of event descriptions: +// The Action field is one of a fixed set of action descriptions: // // run - the test has started running // pause - the test has been paused |