Skip to content

Commit

Permalink
Merge pull request #7424 from cpuguy83/skip_shimcgroup
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelkarp committed Sep 23, 2022
2 parents 39f7cd7 + b4558be commit 4bd8b5b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions integration/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 4 additions & 0 deletions integration/client/container_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4bd8b5b

Please sign in to comment.