From 0bb716d6b2336258e94c56a1b2066ebd5710506e Mon Sep 17 00:00:00 2001 From: Eric Tune Date: Tue, 19 Jan 2016 06:54:38 -0800 Subject: [PATCH] Stop test spew on non-Linux. Make kube-proxy test not run on non-linux to avoid error spew. --- cmd/kube-proxy/app/server_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/kube-proxy/app/server_test.go b/cmd/kube-proxy/app/server_test.go index 74bf5e3217c..6e69a05b87d 100644 --- a/cmd/kube-proxy/app/server_test.go +++ b/cmd/kube-proxy/app/server_test.go @@ -18,6 +18,7 @@ package app import ( "fmt" + "runtime" "testing" "github.com/stretchr/testify/assert" @@ -45,6 +46,9 @@ func (fake *fakeIptablesVersioner) GetVersion() (string, error) { } func Test_getProxyMode(t *testing.T) { + if runtime.GOOS != "linux" { + t.Skip("skipping on non-Linux") + } var cases = []struct { flag string annotationKey string