diff options
author | Bryan C. Mills <bcmills@google.com> | 2019-12-13 15:42:24 -0500 |
---|---|---|
committer | Bryan C. Mills <bcmills@google.com> | 2020-03-04 20:52:43 +0000 |
commit | c55a50edb9454dbdaca165be4b030a1e0cfbaa19 (patch) | |
tree | 495aa1aacb1dceb94e94e5dcd6bccfcce1ba297a /src/cmd/go/internal/test/test.go | |
parent | 68fea523fda227ca5fe7a1eadb7542be4b0a840c (diff) | |
download | go-c55a50edb9454dbdaca165be4b030a1e0cfbaa19.tar.gz go-c55a50edb9454dbdaca165be4b030a1e0cfbaa19.zip |
cmd/go: invalidate cached test results when the -timeout flag changes
Fixes #36134
Change-Id: Icc5e1269696db778ba5c1e6bebed9969b8841c81
Reviewed-on: https://go-review.googlesource.com/c/go/+/220365
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
Diffstat (limited to 'src/cmd/go/internal/test/test.go')
-rw-r--r-- | src/cmd/go/internal/test/test.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/cmd/go/internal/test/test.go b/src/cmd/go/internal/test/test.go index 600f76df4c..1c6fb0b97f 100644 --- a/src/cmd/go/internal/test/test.go +++ b/src/cmd/go/internal/test/test.go @@ -1291,16 +1291,13 @@ func (c *runCache) tryCacheWithID(b *work.Builder, a *work.Action, id string) bo "-test.parallel", "-test.run", "-test.short", + "-test.timeout", "-test.v": // These are cacheable. // Note that this list is documented above, // so if you add to this list, update the docs too. cacheArgs = append(cacheArgs, arg) - case "-test.timeout": - // Special case: this is cacheable but ignored during the hash. - // Do not add to cacheArgs. - default: // nothing else is cacheable if cache.DebugTest { |