Skip to content

Commit b090680

Browse files
committed
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 golang#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 <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> TryBot-Bypass: Michael Knyszek <[email protected]>
1 parent 355370a commit b090680

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/dist/test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ func (t *tester) registerTests() {
677677
}
678678
t.registerStdTest(pkg)
679679
}
680-
if t.race {
680+
if t.race && !t.short {
681681
for _, pkg := range pkgs {
682682
if t.packageHasBenchmarks(pkg) {
683683
t.registerRaceBenchTest(pkg)

0 commit comments

Comments
 (0)