From: Brad Fitzpatrick Date: Sun, 17 Jun 2018 20:30:27 +0000 (+0000) Subject: cmd/dist: don't test Examples for js/wasm X-Git-Tag: go1.11beta1~67 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=9a91713090f22eb7bc2b0b3af7576fe6e86bebfe;p=gostls13.git 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 TryBot-Result: Gobot Gobot Reviewed-by: Richard Musiol --- diff --git a/src/cmd/dist/test.go b/src/cmd/dist/test.go index ac43701d88..e146c2a3b8 100644 --- a/src/cmd/dist/test.go +++ b/src/cmd/dist/test.go @@ -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 }