aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/test2json
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2017-12-01 13:42:53 -0500
committerRuss Cox <rsc@golang.org>2017-12-01 21:06:23 +0000
commit7ef9f7250e2abece8b688cc4fcadc3e32d93f0fc (patch)
tree1d65bb9bfd3615f1ff3eaf4e20f489ba244a1da6 /src/cmd/test2json
parent232b2e3352b0e3913421dc43cb29003eac1c5130 (diff)
downloadgo-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.go4
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