diff options
| author | Than McIntosh <thanm@google.com> | 2022-10-17 13:35:01 -0400 |
|---|---|---|
| committer | Than McIntosh <thanm@google.com> | 2022-10-17 18:22:06 +0000 |
| commit | 3e100a22e57106021df57ff95a0a1ae6ddab2e39 (patch) | |
| tree | 95c5a98f0a2d84ac71d2f87885d5c20b73213c60 /src/runtime/coverage | |
| parent | da6042e82eb7fe5ba40a5c17959a31e19a44c3e8 (diff) | |
| download | go-3e100a22e57106021df57ff95a0a1ae6ddab2e39.tar.xz | |
runtime/coverage: skip more tests in short mode
Add more skips if short mode testing, since some of these tests
still seem to be timing out on smaller and more underpowered
builders.
Updates #56197.
Change-Id: I469d9fd3a6be5602243234562fa3fe6263968b56
Reviewed-on: https://go-review.googlesource.com/c/go/+/443376
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Than McIntosh <thanm@google.com>
Diffstat (limited to 'src/runtime/coverage')
| -rw-r--r-- | src/runtime/coverage/emitdata_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/runtime/coverage/emitdata_test.go b/src/runtime/coverage/emitdata_test.go index e74db3e332..0ccb2d27b0 100644 --- a/src/runtime/coverage/emitdata_test.go +++ b/src/runtime/coverage/emitdata_test.go @@ -22,6 +22,9 @@ import ( const fixedTestDir = false func TestCoverageApis(t *testing.T) { + if testing.Short() { + t.Skipf("skipping test: too long for short mode") + } if !goexperiment.CoverageRedesign { t.Skipf("skipping new coverage tests (experiment not enabled)") } @@ -388,6 +391,9 @@ func testEmitWithCounterClear(t *testing.T, harnessPath string, dir string) { } func TestApisOnNocoverBinary(t *testing.T) { + if testing.Short() { + t.Skipf("skipping test: too long for short mode") + } testenv.MustHaveGoBuild(t) dir := t.TempDir() |
