diff --git a/pkg/util/mount/safe_format_and_mount_test.go b/pkg/util/mount/safe_format_and_mount_test.go index ad9bd91c506..03c0b8442b1 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 { description string fstype string