diff options
| author | Russ Cox <rsc@golang.org> | 2022-08-05 14:15:03 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2022-09-16 14:48:54 +0000 |
| commit | e4a2c38af5bdae12591004c3d35762d23da7a9bd (patch) | |
| tree | b38854b37e893c2eb905dbc252c6269ee11be572 /src/testing/sub_test.go | |
| parent | 819e3394c90e27483f1f6eabfb02d22c927a139d (diff) | |
| download | go-e4a2c38af5bdae12591004c3d35762d23da7a9bd.tar.xz | |
cmd/go, testing: add go test -skip flag
For proposal #41583, add a new 'go test -skip' flag to make it easy
to disable specific tests, benchmarks, examples, or fuzz targets.
Fixes #41583.
Change-Id: Id12a6575f505dafdce4a149aedc454a002e93afa
Reviewed-on: https://go-review.googlesource.com/c/go/+/421439
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Diffstat (limited to 'src/testing/sub_test.go')
| -rw-r--r-- | src/testing/sub_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testing/sub_test.go b/src/testing/sub_test.go index 6d8badfbf8..7d6b97b66e 100644 --- a/src/testing/sub_test.go +++ b/src/testing/sub_test.go @@ -476,7 +476,7 @@ func TestTRun(t *T) { }} for _, tc := range testCases { t.Run(tc.desc, func(t *T) { - ctx := newTestContext(tc.maxPar, newMatcher(regexp.MatchString, "", "")) + ctx := newTestContext(tc.maxPar, allMatcher()) buf := &strings.Builder{} root := &T{ common: common{ @@ -775,7 +775,7 @@ func TestRacyOutput(t *T) { var wg sync.WaitGroup root := &T{ common: common{w: &funcWriter{raceDetector}}, - context: newTestContext(1, newMatcher(regexp.MatchString, "", "")), + context: newTestContext(1, allMatcher()), } root.chatty = newChattyPrinter(root.w) root.Run("", func(t *T) { @@ -798,7 +798,7 @@ func TestRacyOutput(t *T) { // The late log message did not include the test name. Issue 29388. func TestLogAfterComplete(t *T) { - ctx := newTestContext(1, newMatcher(regexp.MatchString, "", "")) + ctx := newTestContext(1, allMatcher()) var buf bytes.Buffer t1 := &T{ common: common{ |
