libct/integration: enable some tests for cgroupv2
The only two tests that are still skipped on v2 are kmem and invalid CpuShares test -- since v2 does not support either. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
parent
a340fa9b56
commit
2de0b5aaf3
|
@ -207,9 +207,6 @@ func TestEnter(t *testing.T) {
|
||||||
if testing.Short() {
|
if testing.Short() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if cgroups.IsCgroup2UnifiedMode() {
|
|
||||||
t.Skip("cgroup v2 is not supported")
|
|
||||||
}
|
|
||||||
|
|
||||||
rootfs, err := newRootfs()
|
rootfs, err := newRootfs()
|
||||||
ok(t, err)
|
ok(t, err)
|
||||||
|
@ -516,9 +513,6 @@ func testFreeze(t *testing.T, systemd bool) {
|
||||||
if testing.Short() {
|
if testing.Short() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if cgroups.IsCgroup2UnifiedMode() {
|
|
||||||
t.Skip("cgroup v2 is not supported")
|
|
||||||
}
|
|
||||||
|
|
||||||
rootfs, err := newRootfs()
|
rootfs, err := newRootfs()
|
||||||
ok(t, err)
|
ok(t, err)
|
||||||
|
@ -574,7 +568,7 @@ func testCpuShares(t *testing.T, systemd bool) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if cgroups.IsCgroup2UnifiedMode() {
|
if cgroups.IsCgroup2UnifiedMode() {
|
||||||
t.Skip("cgroup v2 is not supported")
|
t.Skip("cgroup v2 does not support CpuShares")
|
||||||
}
|
}
|
||||||
|
|
||||||
rootfs, err := newRootfs()
|
rootfs, err := newRootfs()
|
||||||
|
@ -608,9 +602,6 @@ func testPids(t *testing.T, systemd bool) {
|
||||||
if testing.Short() {
|
if testing.Short() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if cgroups.IsCgroup2UnifiedMode() {
|
|
||||||
t.Skip("cgroup v2 is not supported")
|
|
||||||
}
|
|
||||||
|
|
||||||
rootfs, err := newRootfs()
|
rootfs, err := newRootfs()
|
||||||
ok(t, err)
|
ok(t, err)
|
||||||
|
@ -695,7 +686,7 @@ func testRunWithKernelMemory(t *testing.T, systemd bool) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if cgroups.IsCgroup2UnifiedMode() {
|
if cgroups.IsCgroup2UnifiedMode() {
|
||||||
t.Skip("cgroup v2 is not supported")
|
t.Skip("cgroup v2 does not support kernel memory limit")
|
||||||
}
|
}
|
||||||
|
|
||||||
rootfs, err := newRootfs()
|
rootfs, err := newRootfs()
|
||||||
|
|
Loading…
Reference in New Issue