portlist: also tb.Skip benchmarks (not just tests) on bad Linux kernels
Updates #16966 Change-Id: I0269927bdf8e6c4e949fcf755ce7e5fd21386d7d Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
36d359e585
commit
068074c109
@@ -11,7 +11,7 @@ import (
|
|||||||
"tailscale.com/tstest"
|
"tailscale.com/tstest"
|
||||||
)
|
)
|
||||||
|
|
||||||
func maybeSkip(t *testing.T) {
|
func maybeSkip(t testing.TB) {
|
||||||
if runtime.GOOS == "linux" {
|
if runtime.GOOS == "linux" {
|
||||||
tstest.SkipOnKernelVersions(t,
|
tstest.SkipOnKernelVersions(t,
|
||||||
"https://github.com/tailscale/tailscale/issues/16966",
|
"https://github.com/tailscale/tailscale/issues/16966",
|
||||||
@@ -214,6 +214,7 @@ func BenchmarkGetListIncremental(b *testing.B) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func benchmarkGetList(b *testing.B, incremental bool) {
|
func benchmarkGetList(b *testing.B, incremental bool) {
|
||||||
|
maybeSkip(b)
|
||||||
b.ReportAllocs()
|
b.ReportAllocs()
|
||||||
var p Poller
|
var p Poller
|
||||||
p.init()
|
p.init()
|
||||||
|
|||||||
Reference in New Issue
Block a user