From 1c31e193c01c12b86073f0290c29efd6960b0692 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 26 Jun 2020 15:36:49 +0200 Subject: [PATCH] command/container: skip some tests on macOS These tests failed when running natively on macOS; unknown server OS: darwin Skipping them, like we do on Windows Signed-off-by: Sebastiaan van Stijn --- cli/command/container/opts_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/command/container/opts_test.go b/cli/command/container/opts_test.go index 1d8e0d2334..afb9811e46 100644 --- a/cli/command/container/opts_test.go +++ b/cli/command/container/opts_test.go @@ -352,7 +352,7 @@ func TestParseWithExpose(t *testing.T) { } func TestParseDevice(t *testing.T) { - skip.If(t, runtime.GOOS == "windows") // Windows validates server-side + skip.If(t, runtime.GOOS != "linux") // Windows and macOS validate server-side valids := map[string]container.DeviceMapping{ "/dev/snd": { PathOnHost: "/dev/snd", @@ -768,7 +768,7 @@ func TestParseEntryPoint(t *testing.T) { } func TestValidateDevice(t *testing.T) { - skip.If(t, runtime.GOOS == "windows") // Windows validates server-side + skip.If(t, runtime.GOOS != "linux") // Windows and macOS validate server-side valid := []string{ "/home", "/home:/home",