浏览代码

Merge pull request #9490 from jfrazelle/fix-test-cmd-eff

Fix tests with old cmd function.
Michael Crosby 10 年之前
父节点
当前提交
e2a4b730ca
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      integration-cli/docker_cli_create_test.go

+ 3 - 1
integration-cli/docker_cli_create_test.go

@@ -129,7 +129,9 @@ func TestCreateEchoStdout(t *testing.T) {
 
 func TestCreateVolumesCreated(t *testing.T) {
 	name := "test_create_volume"
-	cmd(t, "create", "--name", name, "-v", "/foo", "busybox")
+	if out, _, err := runCommandWithOutput(exec.Command(dockerBinary, "create", "--name", name, "-v", "/foo", "busybox")); err != nil {
+		t.Fatal(out, err)
+	}
 	dir, err := inspectFieldMap(name, "Volumes", "/foo")
 	if err != nil {
 		t.Fatalf("Error getting volume host path: %q", err)