Merge pull request #2604 from thaJeztah/skip_on_mac

command/container: skip some tests on macOS
This commit is contained in:
Silvin Lubecki 2020-06-26 16:05:58 +02:00 committed by GitHub
commit e0654a584b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -352,7 +352,7 @@ func TestParseWithExpose(t *testing.T) {
} }
func TestParseDevice(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{ valids := map[string]container.DeviceMapping{
"/dev/snd": { "/dev/snd": {
PathOnHost: "/dev/snd", PathOnHost: "/dev/snd",
@ -768,7 +768,7 @@ func TestParseEntryPoint(t *testing.T) {
} }
func TestValidateDevice(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{ valid := []string{
"/home", "/home",
"/home:/home", "/home:/home",