Browse code

Fix volume test using "find" to properly call find with /hello path

Docker-DCO-1.1-Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com> (github: estesp)

Phil Estes authored on 2014/10/24 03:13:11
Showing 1 changed files
... ...
@@ -1611,7 +1611,7 @@ func TestRunCopyVolumeContent(t *testing.T) {
1611 1611
 	}
1612 1612
 
1613 1613
 	// Test that the content is copied from the image to the volume
1614
-	cmd := exec.Command(dockerBinary, "run", "--rm", "-v", "/hello", name, "sh", "-c", "find", "/hello")
1614
+	cmd := exec.Command(dockerBinary, "run", "--rm", "-v", "/hello", name, "find", "/hello")
1615 1615
 	out, _, err := runCommandWithOutput(cmd)
1616 1616
 	if err != nil {
1617 1617
 		t.Fatal(err, out)