Merge pull request #3468 from crosbymichael/custom-cgroup

Improve custom cgroup test
This commit is contained in:
Wei Fu 2019-07-31 09:23:02 +08:00 committed by GitHub
commit a49df98ee9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -241,8 +241,16 @@ version = 1
defer cleanup()
for k, v := range cgroupPath {
if k == "rmda" {
paths := []string{
"devices",
"memory",
"cpu",
"blkio",
}
for _, p := range paths {
v := cgroupPath[p]
if v == "" {
continue
}
path := filepath.Join(v, customCgroup)