]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: reenable testing of Examples for js/wasm
authorRichard Musiol <mail@richard-musiol.de>
Sat, 16 Mar 2019 13:05:00 +0000 (14:05 +0100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sat, 16 Mar 2019 14:16:39 +0000 (14:16 +0000)
Testing Examples for js/wasm is supported as of ac56baa, so we can
reenable them.

This reverts CL 119377 (commit 9a91713).

Fixes #25933

Change-Id: I0f228a3ec385dbe9573d3c33e42dccd4488d7152
Reviewed-on: https://go-review.googlesource.com/c/go/+/167800
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/dist/test.go

index 9e7205f56e85e73bf42a24a67ed4d783553b6545..5ecef4494d81200a0997df948b5e8daffbe1610e 100644 (file)
@@ -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
 }