]> Cypherpunks repositories - gostls13.git/commit
cmd/go: add -benchtime to cacheable test flags
authorJohan Jansson <johan.jansson@iki.fi>
Wed, 24 Mar 2021 15:14:29 +0000 (17:14 +0200)
committerBryan C. Mills <bcmills@google.com>
Thu, 25 Mar 2021 18:05:10 +0000 (18:05 +0000)
commit74fe516c3549e8177aa5326e6ce17efd529e3383
tree5fa8f2b0004bb06099193359a0701a3b3921a3f9
parent82a1e0f9d3e47ae7792cb857e950abc7103e9f39
cmd/go: add -benchtime to cacheable test flags

Add -benchtime to the list of flags that allow caching test results.

If -benchtime is set without -bench, no benchmarks are run. The cache
does not need to be invalidated in this case.

If -benchtime is set with -bench, benchmarks are run. The cache is
invalidated due to the -bench flag in this case.

Fixes #44555

Change-Id: I2eb5c9f389a587d150fb984590d145251d0fa2dc
Reviewed-on: https://go-review.googlesource.com/c/go/+/304689
Reviewed-by: Jay Conrod <jayconrod@google.com>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Trust: Jay Conrod <jayconrod@google.com>
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/cmd/go/alldocs.go
src/cmd/go/internal/test/test.go
src/cmd/go/testdata/script/test_cache_inputs.txt