mirror of https://github.com/docker/cli.git
Merge pull request #2604 from thaJeztah/skip_on_mac
command/container: skip some tests on macOS
This commit is contained in:
commit
e0654a584b
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue