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.
This commit is contained in:
Vicken Simonian 2017-09-20 00:28:55 -07:00
parent 02f48b6846
commit d0892dfb5d

View File

@ -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 {