]> Cypherpunks repositories - gostls13.git/commit
internal/testenv: mark SkipFlaky and SkipFlakyNet as helpers
authorAlex Brainman <alex.brainman@gmail.com>
Sat, 4 Nov 2017 01:35:23 +0000 (12:35 +1100)
committerAlex Brainman <alex.brainman@gmail.com>
Sat, 4 Nov 2017 05:36:49 +0000 (05:36 +0000)
commit09660450394657510880197974d5ccfabd7bef8b
tree3cf39781dc386ef18cfa1ba3898485f4a82963af
parent8db19a496640db4c7c318007c82eaa5d65c85b93
internal/testenv: mark SkipFlaky and SkipFlakyNet as helpers

This makes the output they print refer to the code that called them.

For example, instead of

=== RUN   TestWindowsStackMemoryCgo
--- SKIP: TestWindowsStackMemoryCgo (0.00s)
        testenv.go:213: skipping known flaky test ...
PASS

we see

=== RUN   TestWindowsStackMemoryCgo
--- SKIP: TestWindowsStackMemoryCgo (0.00s)
        crash_cgo_test.go:471: skipping known flaky test ...
PASS

Change-Id: I5f4c77c3aeab5c0e43c6dde2f15db70a6df24603
Reviewed-on: https://go-review.googlesource.com/76031
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/internal/testenv/testenv.go