diff options
| author | Russ Cox <rsc@golang.org> | 2022-11-07 11:58:45 -0500 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2022-11-09 17:33:07 +0000 |
| commit | 7a92c4fc637621368eb26a7e72bb027b29568e50 (patch) | |
| tree | 820c68aa8b5e1f43dfe337cb10ddd908bac5b838 /src/cmd/internal/test2json/testdata/benchshort.json | |
| parent | 9ff2a6677fd34084295172aff0848ab9a4f5b76e (diff) | |
| download | go-7a92c4fc637621368eb26a7e72bb027b29568e50.tar.xz | |
cmd/go: print test2json start events
Add a new "Action":"start" test2json event to mark the
start of the test binary execution. This adds useful information
to the JSON traces, and it also lets programs watching test
execution see the order in which the tests are being run,
because we arrange for the starts to happen sequentially.
Change-Id: I9fc865a486a55a7e9315f8686f59a2aa06455884
Reviewed-on: https://go-review.googlesource.com/c/go/+/448357
Run-TryBot: Russ Cox <rsc@golang.org>
Auto-Submit: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Diffstat (limited to 'src/cmd/internal/test2json/testdata/benchshort.json')
| -rw-r--r-- | src/cmd/internal/test2json/testdata/benchshort.json | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/internal/test2json/testdata/benchshort.json b/src/cmd/internal/test2json/testdata/benchshort.json index 34b03b9362..6c4e193573 100644 --- a/src/cmd/internal/test2json/testdata/benchshort.json +++ b/src/cmd/internal/test2json/testdata/benchshort.json @@ -1,3 +1,4 @@ +{"Action":"start"} {"Action":"output","Output":"# This file ends in an early EOF to trigger the Benchmark prefix test,\n"} {"Action":"output","Output":"# which only happens when a benchmark prefix is seen ahead of the \\n.\n"} {"Action":"output","Output":"# Normally that's due to the benchmark running and the \\n coming later,\n"} |
