From d0892dfb5d6d13e87abcd1fcb99c7e1f07f4dc42 Mon Sep 17 00:00:00 2001 From: Vicken Simonian Date: Wed, 20 Sep 2017 00:28:55 -0700 Subject: [PATCH] TestIoHandler should not run on unsupported platforms Fix for failing test on darwin/osx. Skip the test on unsupported (non-windows and non-linux) platforms. --- pkg/volume/azure_dd/azure_common_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/volume/azure_dd/azure_common_test.go b/pkg/volume/azure_dd/azure_common_test.go index 5c545257ffa..508c24d0943 100644 --- a/pkg/volume/azure_dd/azure_common_test.go +++ b/pkg/volume/azure_dd/azure_common_test.go @@ -119,6 +119,9 @@ func (handler *fakeIOHandler) ReadFile(filename string) ([]byte, error) { } func TestIoHandler(t *testing.T) { + if runtime.GOOS != "windows" && runtime.GOOS != "linux" { + t.Skipf("TestIoHandler not supported on GOOS=%s", runtime.GOOS) + } disk, err := findDiskByLun(lun, &fakeIOHandler{}, mount.NewOsExec()) if runtime.GOOS == "windows" { if err != nil {