]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: don't test Examples for js/wasm
authorBrad Fitzpatrick <bradfitz@golang.org>
Sun, 17 Jun 2018 20:30:27 +0000 (20:30 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sun, 17 Jun 2018 20:45:54 +0000 (20:45 +0000)
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>
src/cmd/dist/test.go

index ac43701d888abf0010947b37a167c256abfed65c..e146c2a3b8839f27f2e532081f9209ff8c7370ee 100644 (file)
@@ -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
 }