mirror of
https://github.com/golang/go
synced 2024-11-27 04:21:24 -07:00
cmd/dist: don't test Examples for js/wasm
Fixes #25913 Change-Id: I4701ec94fa4b07211a8beed85c02ee5aa4fe3eb3 Reviewed-on: https://go-review.googlesource.com/119377 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Richard Musiol <neelance@gmail.com>
This commit is contained in:
parent
05f8b44d5e
commit
9a91713090
5
src/cmd/dist/test.go
vendored
5
src/cmd/dist/test.go
vendored
@ -324,6 +324,8 @@ func (t *tester) registerStdTest(pkg string) {
|
||||
}
|
||||
if t.compileOnly {
|
||||
args = append(args, "-run=^$")
|
||||
} else if goos == "js" && goarch == "wasm" {
|
||||
args = append(args, "-run=^Test") // exclude examples; Issue 25913
|
||||
}
|
||||
args = append(args, stdMatches...)
|
||||
cmd := exec.Command("go", args...)
|
||||
@ -1335,6 +1337,9 @@ func (t *tester) runFlag(rx string) string {
|
||||
if t.compileOnly {
|
||||
return "-run=^$"
|
||||
}
|
||||
if rx == "" && goos == "js" && goarch == "wasm" {
|
||||
return "-run=^Test" // exclude examples; Issue 25913
|
||||
}
|
||||
return "-run=" + rx
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user