From: Richard Musiol Date: Sat, 16 Mar 2019 13:05:00 +0000 (+0100) Subject: cmd/dist: reenable testing of Examples for js/wasm X-Git-Tag: go1.13beta1~1010 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=14c3692502be68275a8deb9c19dabbbd510a4f31;p=gostls13.git cmd/dist: reenable testing of Examples for js/wasm 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 --- diff --git a/src/cmd/dist/test.go b/src/cmd/dist/test.go index 9e7205f56e..5ecef4494d 100644 --- a/src/cmd/dist/test.go +++ b/src/cmd/dist/test.go @@ -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 }