diff --git a/integration/client/client_test.go b/integration/client/client_test.go index 69a1dd0b0..282745dc2 100644 --- a/integration/client/client_test.go +++ b/integration/client/client_test.go @@ -46,11 +46,13 @@ var ( noDaemon bool noCriu bool supportsCriu bool + noShimCgroup bool ) func init() { flag.BoolVar(&noDaemon, "no-daemon", false, "Do not start a dedicated daemon for the tests") flag.BoolVar(&noCriu, "no-criu", false, "Do not run the checkpoint tests") + flag.BoolVar(&noShimCgroup, "no-shim-cgroup", false, "Do not run the shim cgroup tests") } func TestMain(m *testing.M) { diff --git a/integration/client/container_linux_test.go b/integration/client/container_linux_test.go index 9fd76e0b8..6365ba740 100644 --- a/integration/client/container_linux_test.go +++ b/integration/client/container_linux_test.go @@ -160,6 +160,10 @@ func TestTaskUpdate(t *testing.T) { } func TestShimInCgroup(t *testing.T) { + if noShimCgroup { + t.Skip("shim cgroup is not enabled") + } + t.Parallel() client, err := newClient(t, address)