Improve custom cgroup test
Ref: #3272 Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
4195136eea
commit
f68186e107
@ -241,8 +241,16 @@ version = 1
|
|||||||
|
|
||||||
defer cleanup()
|
defer cleanup()
|
||||||
|
|
||||||
for k, v := range cgroupPath {
|
paths := []string{
|
||||||
if k == "rmda" {
|
"devices",
|
||||||
|
"memory",
|
||||||
|
"cpu",
|
||||||
|
"blkio",
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, p := range paths {
|
||||||
|
v := cgroupPath[p]
|
||||||
|
if v == "" {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
path := filepath.Join(v, customCgroup)
|
path := filepath.Join(v, customCgroup)
|
||||||
|
Loading…
Reference in New Issue
Block a user