Skip to content
Snippets Groups Projects
Commit 74b59c9c authored by Darren Shepherd's avatar Darren Shepherd
Browse files

Fix test to work where cgroup is cpu,cpuacct

parent aa529de9
No related branches found
No related tags found
No related merge requests found
......@@ -240,13 +240,13 @@ func TestParseCgroups(t *testing.T) {
log.Fatal("Error:", err)
}
if val, ok := cgroups["cpu"]; ok {
p := path.Join(SYSFS, "cpu", val)
if val, ok := cgroups["blkio"]; ok {
p := path.Join(SYSFS, "blkio", val)
if _, err := os.Stat(p); os.IsNotExist(err) {
log.Fatalf("Path does not exist %s", p, err)
}
} else {
log.Fatal("Failed to find cpu cgroup", val)
log.Fatal("Failed to find blkio cgroup", val)
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment