mirror of
https://github.com/golang/go
synced 2024-11-26 09:58:04 -07:00
cmd/dist: reenable testing of Examples for js/wasm
Testing Examples for js/wasm is supported as ofac56baa
, so we can reenable them. This reverts CL 119377 (commit9a91713
). Fixes #25933 Change-Id: I0f228a3ec385dbe9573d3c33e42dccd4488d7152 Reviewed-on: https://go-review.googlesource.com/c/go/+/167800 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
7765576e09
commit
14c3692502
5
src/cmd/dist/test.go
vendored
5
src/cmd/dist/test.go
vendored
@ -326,8 +326,6 @@ 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...)
|
||||
@ -1270,9 +1268,6 @@ 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