mirror of
https://github.com/golang/go
synced 2024-11-17 05:04:54 -07:00
cmd/dist: skip non-race tests
In -race mode, the dist test command only registers the std, race, osusergo, and amd64ios tests before returning early from (*tester).registerTests. Prior to CL 450018, the osusergo and amd64ios tests weren't even affected by -race mode, so it seems their inclusion was unintentional. CL 450018 lifted the logic to run tests in race mode, which means these tests went from running without -race to running with -race. Unfortunately, amd64ios is not compatible with -race, so it is now failing on the darwin-amd64-race builder. Fix this by omitting the osusergo and amd64ios tests from -race mode, since it seems like they were really intended to be included anyway. This should fix the darwin-amd64-race builder. Updates #37486. Change-Id: I554bb60bc729dbb6f1bc926f1ea329768b0d6d81 Reviewed-on: https://go-review.googlesource.com/c/go/+/451437 Reviewed-by: Bryan Mills <bcmills@google.com> Run-TryBot: Austin Clements <austin@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Austin Clements <austin@google.com>
This commit is contained in:
parent
3f5b02d09f
commit
44edc5d787
8
src/cmd/dist/test.go
vendored
8
src/cmd/dist/test.go
vendored
@ -660,6 +660,10 @@ func (t *tester) registerTests() {
|
||||
}
|
||||
}
|
||||
|
||||
if t.race {
|
||||
return
|
||||
}
|
||||
|
||||
// Test the os/user package in the pure-Go mode too.
|
||||
if !t.compileOnly {
|
||||
t.registerTest("osusergo", "os/user with tag osusergo",
|
||||
@ -681,10 +685,6 @@ func (t *tester) registerTests() {
|
||||
})
|
||||
}
|
||||
|
||||
if t.race {
|
||||
return
|
||||
}
|
||||
|
||||
// Runtime CPU tests.
|
||||
if !t.compileOnly && goos != "js" { // js can't handle -cpu != 1
|
||||
t.registerTest("runtime:cpu124", "GOMAXPROCS=2 runtime -cpu=1,2,4 -quick",
|
||||
|
Loading…
Reference in New Issue
Block a user