瀏覽代碼

Merge pull request #11512 from vishh/parent-cgroup

Update --cgroup-parent cli integration test to use "memory" cgroup instead of "cpu"
Michael Crosby 10 年之前
父節點
當前提交
385d4beaa5
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      integration-cli/docker_cli_run_unix_test.go

+ 2 - 2
integration-cli/docker_cli_run_unix_test.go

@@ -114,7 +114,7 @@ func getCgroupPaths(test string) map[string]string {
 	for _, line := range strings.Split(test, "\n") {
 		parts := strings.Split(line, ":")
 		if len(parts) != 3 {
-			fmt.Printf("unexpected file format for /proc/self/cgroup - %q", line)
+			fmt.Printf("unexpected file format for /proc/self/cgroup - %q\n", line)
 			continue
 		}
 		cgroupPaths[parts[1]] = parts[2]
@@ -132,7 +132,7 @@ func TestRunContainerWithCgroupParent(t *testing.T) {
 		t.Fatalf("failed to read '/proc/self/cgroup - %v", err)
 	}
 	selfCgroupPaths := getCgroupPaths(string(data))
-	selfCpuCgroup, found := selfCgroupPaths["cpu"]
+	selfCpuCgroup, found := selfCgroupPaths["memory"]
 	if !found {
 		t.Fatalf("unable to find self cpu cgroup path. CgroupsPath: %v", selfCgroupPaths)
 	}