• Russ Cox's avatar
    cmd/go: treat cached test results as satisfying any timeout · 48f2a55a
    Russ Cox authored
    We want test caching to work even for people with scripts
    that set a non-default test timeout. But then that raises the
    question of what to do about runs with different timeouts:
    is a cached success with one timeout available for use when
    asked to run the test with a different timeout?
    
    This CL answers that question by saying that the timeout applies
    to the overall execution of either running the test or displaying
    the cached result, and displaying a cached result takes no time.
    So it's always OK to record a cached result, regardless of timeout,
    and it's always OK to display a cached result, again regardless of timeout.
    
    Fixes #22633.
    
    Change-Id: Iaef3602710e3be107602267bbc6dba9a2250796c
    Reviewed-on: https://go-review.googlesource.com/76552
    Run-TryBot: Russ Cox <rsc@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarroger peppe <rogpeppe@gmail.com>
    Reviewed-by: 's avatarDavid Crawshaw <crawshaw@golang.org>
    48f2a55a
Name
Last commit
Last update
..
addr2line Loading commit data...
api Loading commit data...
asm Loading commit data...
buildid Loading commit data...
cgo Loading commit data...
compile Loading commit data...
cover Loading commit data...
dist Loading commit data...
doc Loading commit data...
fix Loading commit data...
go Loading commit data...
gofmt Loading commit data...
internal Loading commit data...
link Loading commit data...
nm Loading commit data...
objdump Loading commit data...
pack Loading commit data...
pprof Loading commit data...
trace Loading commit data...
vendor Loading commit data...
vet Loading commit data...