Browse code

Fix tests with old cmd function.

Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com> (github: jfrazelle)

Jessica Frazelle authored on 2014/12/04 08:53:19
Showing 1 changed files
... ...
@@ -129,7 +129,9 @@ func TestCreateEchoStdout(t *testing.T) {
129 129
 
130 130
 func TestCreateVolumesCreated(t *testing.T) {
131 131
 	name := "test_create_volume"
132
-	cmd(t, "create", "--name", name, "-v", "/foo", "busybox")
132
+	if out, _, err := runCommandWithOutput(exec.Command(dockerBinary, "create", "--name", name, "-v", "/foo", "busybox")); err != nil {
133
+		t.Fatal(out, err)
134
+	}
133 135
 	dir, err := inspectFieldMap(name, "Volumes", "/foo")
134 136
 	if err != nil {
135 137
 		t.Fatalf("Error getting volume host path: %q", err)