There doesn't appear to be a way to disable the new test caching behaviour when running go tool dist test. This is a bit inconvenient when trying to recreate/resolve intermittent issues.
What version of Go are you using (go version)?
go version devel +7781fed24e Thu Nov 16 02:24:37 2017 +0000 linux/s390x
Does this issue reproduce with the latest release?
No, 1.9.x does not have test caching.
What did you do?
go tool dist test
What did you expect to see?
##### Testing packages.
ok archive/tar 0.033s
ok archive/zip 0.749s
ok bufio 0.126s
ok bytes 0.934s
ok compress/bzip2 0.068s
ok compress/flate 0.833s
ok compress/gzip 0.010s
ok compress/lzw 0.020s
ok compress/zlib 0.100s
ok container/heap 0.035s
ok container/list 0.015s
ok container/ring 0.014s
ok context 1.008s
...
What did you see instead?
##### Testing packages.
ok archive/tar (cached)
ok archive/zip (cached)
ok bufio (cached)
ok bytes (cached)
ok compress/bzip2 (cached)
ok compress/flate (cached)
ok compress/gzip (cached)
ok compress/lzw (cached)
ok compress/zlib (cached)
ok container/heap (cached)
ok container/list (cached)
ok container/ring (cached)
ok context (cached)
...
The output of go tool dist test -h is currently:
usage: go tool dist test [options]
-banner string
banner prefix; blank means no section banners (default "##### ")
-compile-only
compile tests, but don't run them. This is for some builders. Not all dist tests respect this flag, but most do.
-k keep going even when error occurred
-list
list available tests
-no-rebuild
overrides -rebuild (historical dreg)
-race
run in race builder mode (different set of tests)
-rebuild
rebuild everything first
-run string
run only those tests matching the regular expression; empty means to run all. Special exception: if the string begins with '!', the match is inverted.
-v verbosity
The -rebuild flag does not affect the caching.
There doesn't appear to be a way to disable the new test caching behaviour when running
go tool dist test. This is a bit inconvenient when trying to recreate/resolve intermittent issues.What version of Go are you using (
go version)?go version devel +7781fed24e Thu Nov 16 02:24:37 2017 +0000 linux/s390x
Does this issue reproduce with the latest release?
No, 1.9.x does not have test caching.
What did you do?
go tool dist test
What did you expect to see?
What did you see instead?
The output of
go tool dist test -his currently:The
-rebuildflag does not affect the caching.