diff options
| author | Michael Pratt <mpratt@google.com> | 2017-02-21 17:00:10 -0800 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2017-02-22 19:09:17 +0000 |
| commit | 6694a01016e2fb842ee6d8ae053b9c87f56185ff (patch) | |
| tree | 1dc2e3f2e52c716c8a298c4baafb94ed9a327be2 /src/cmd/dist | |
| parent | 19d2061d502d26086d6db75fa818dde668a888bf (diff) | |
| download | go-git-6694a01016e2fb842ee6d8ae053b9c87f56185ff.tar.gz | |
cmd/dist: fix negative test filtering
std and race bench tests fail to check against t.runRxWant, so what
should be negative filters act as positive filters.
Fixes #19239
Change-Id: Icf02b2192bcd806a162fca9fb0af68a27ccfc936
Reviewed-on: https://go-review.googlesource.com/37336
Run-TryBot: Michael Pratt <mpratt@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/cmd/dist')
| -rw-r--r-- | src/cmd/dist/test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/dist/test.go b/src/cmd/dist/test.go index c51dcead2b..fd011e1193 100644 --- a/src/cmd/dist/test.go +++ b/src/cmd/dist/test.go @@ -263,7 +263,7 @@ var ( func (t *tester) registerStdTest(pkg string) { testName := "go_test:" + pkg - if t.runRx == nil || t.runRx.MatchString(testName) { + if t.runRx == nil || t.runRx.MatchString(testName) == t.runRxWant { stdMatches = append(stdMatches, pkg) } t.tests = append(t.tests, distTest{ @@ -299,7 +299,7 @@ func (t *tester) registerStdTest(pkg string) { func (t *tester) registerRaceBenchTest(pkg string) { testName := "go_test_bench:" + pkg - if t.runRx == nil || t.runRx.MatchString(testName) { + if t.runRx == nil || t.runRx.MatchString(testName) == t.runRxWant { benchMatches = append(benchMatches, pkg) } t.tests = append(t.tests, distTest{ |
