From: Than McIntosh Date: Mon, 17 Oct 2022 17:35:01 +0000 (-0400) Subject: runtime/coverage: skip more tests in short mode X-Git-Tag: go1.20rc1~612 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3e100a22e57106021df57ff95a0a1ae6ddab2e39;p=gostls13.git 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 Reviewed-by: David Chase Run-TryBot: Than McIntosh --- 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()