mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
Merge pull request #538 from hqhq/hq_fix_freeze_test
fix freeze systemd test
This commit is contained in:
@@ -425,11 +425,12 @@ func testFreeze(t *testing.T, systemd bool) {
|
||||
defer remove(rootfs)
|
||||
|
||||
config := newTemplateConfig(rootfs)
|
||||
cgm := libcontainer.Cgroupfs
|
||||
if systemd {
|
||||
config.Cgroups.Slice = "system.slice"
|
||||
cgm = libcontainer.SystemdCgroups
|
||||
}
|
||||
|
||||
factory, err := libcontainer.New(root, libcontainer.Cgroupfs)
|
||||
factory, err := libcontainer.New(root, cgm)
|
||||
ok(t, err)
|
||||
|
||||
container, err := factory.Create("test", config)
|
||||
|
||||
Reference in New Issue
Block a user