aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Anthony Knyszek <mknyszek@google.com>2025-09-02 18:35:21 +0000
committerMichael Knyszek <mknyszek@google.com>2025-09-02 15:17:38 -0700
commitb09068041a20ed3cd44685a1d7f4dccbabfc2e94 (patch)
tree0b1075f6bd81e25698d5529a35e54b4853b81501 /src
parent355370ac52962a82a292492fdcbda4a52c9f6e7e (diff)
downloadgo-b09068041a20ed3cd44685a1d7f4dccbabfc2e94.tar.xz
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>
Diffstat (limited to 'src')
-rw-r--r--src/cmd/dist/test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/dist/test.go b/src/cmd/dist/test.go
index dfa4ffb522..91e3716f07 100644
--- a/src/cmd/dist/test.go
+++ b/src/cmd/dist/test.go
@@ -677,7 +677,7 @@ func (t *tester) registerTests() {
}
t.registerStdTest(pkg)
}
- if t.race {
+ if t.race && !t.short {
for _, pkg := range pkgs {
if t.packageHasBenchmarks(pkg) {
t.registerRaceBenchTest(pkg)