Merge pull request #7424 from cpuguy83/skip_shimcgroup

This commit is contained in:
Samuel Karp
2022-09-23 15:06:44 -07:00
committed by GitHub
2 changed files with 6 additions and 0 deletions

View File

@@ -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) {

View File

@@ -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)