From 389d5e48cb5cbfa1867a6550048167f655e79b64 Mon Sep 17 00:00:00 2001 From: Clayton Coleman Date: Tue, 12 Jan 2016 21:43:50 -0500 Subject: [PATCH] Skip format and mount test on windows or mac --- pkg/util/mount/safe_format_and_mount_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/util/mount/safe_format_and_mount_test.go b/pkg/util/mount/safe_format_and_mount_test.go index d859b1e6b92..4350fc138e6 100644 --- a/pkg/util/mount/safe_format_and_mount_test.go +++ b/pkg/util/mount/safe_format_and_mount_test.go @@ -18,6 +18,7 @@ package mount import ( "fmt" + "runtime" "testing" "k8s.io/kubernetes/pkg/util/exec" @@ -46,6 +47,9 @@ type ExecArgs struct { } func TestSafeFormatAndMount(t *testing.T) { + if runtime.GOOS == "darwin" || runtime.GOOS == "windows" { + t.Skipf("not supported on GOOS=%s", runtime.GOOS) + } tests := []struct { fstype string mountOptions []string