File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- // +build !windows
1+ // +build !windows,!darwin
22
33/*
44 Copyright The containerd Authors.
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ package server
1919import (
2020 "context"
2121 "path/filepath"
22+ goruntime "runtime"
2223 "testing"
2324
2425 "github.com/containerd/containerd/oci"
@@ -68,6 +69,10 @@ func TestGeneralContainerSpec(t *testing.T) {
6869}
6970
7071func TestPodAnnotationPassthroughContainerSpec (t * testing.T ) {
72+ if goruntime .GOOS == "darwin" {
73+ t .Skip ("not implemented on Darwin" )
74+ }
75+
7176 testID := "test-id"
7277 testSandboxID := "sandbox-id"
7378 testContainerName := "container-name"
@@ -272,6 +277,10 @@ func TestVolumeMounts(t *testing.T) {
272277}
273278
274279func TestContainerAnnotationPassthroughContainerSpec (t * testing.T ) {
280+ if goruntime .GOOS == "darwin" {
281+ t .Skip ("not implemented on Darwin" )
282+ }
283+
275284 testID := "test-id"
276285 testSandboxID := "sandbox-id"
277286 testContainerName := "container-name"
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ package server
1818
1919import (
2020 "net"
21+ goruntime "runtime"
2122 "testing"
2223
2324 cni "github.com/containerd/go-cni"
@@ -33,6 +34,10 @@ import (
3334)
3435
3536func TestSandboxContainerSpec (t * testing.T ) {
37+ if goruntime .GOOS == "darwin" {
38+ t .Skip ("not implemented on Darwin" )
39+ }
40+
3641 testID := "test-id"
3742 nsPath := "test-cni"
3843 for desc , test := range map [string ]struct {
You can’t perform that action at this time.
0 commit comments