mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/dist: run racebench tests only in longtest mode
The racebench tests represent a significant portion of the race builders' runtimes, but these tests aren't providing a lot of value. Disable them and run them only on -longtest-race builders. For #32032. Change-Id: Ic4383c3f3b51d123ae9f5c377bc0e2ec02f2ddd7 Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-race,gotip-linux-amd64-longtest-race Reviewed-on: https://go-review.googlesource.com/c/go/+/700455 Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> TryBot-Bypass: Michael Knyszek <mknyszek@google.com>
This commit is contained in:
parent
355370ac52
commit
b09068041a
1 changed files with 1 additions and 1 deletions
2
src/cmd/dist/test.go
vendored
2
src/cmd/dist/test.go
vendored
|
|
@ -677,7 +677,7 @@ func (t *tester) registerTests() {
|
||||||
}
|
}
|
||||||
t.registerStdTest(pkg)
|
t.registerStdTest(pkg)
|
||||||
}
|
}
|
||||||
if t.race {
|
if t.race && !t.short {
|
||||||
for _, pkg := range pkgs {
|
for _, pkg := range pkgs {
|
||||||
if t.packageHasBenchmarks(pkg) {
|
if t.packageHasBenchmarks(pkg) {
|
||||||
t.registerRaceBenchTest(pkg)
|
t.registerRaceBenchTest(pkg)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue