Przeglądaj źródła

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 10 lat temu
rodzic
commit
6589044b5b
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      integration-cli/docker_cli_run_test.go

+ 1 - 1
integration-cli/docker_cli_run_test.go

@@ -1611,7 +1611,7 @@ func TestRunCopyVolumeContent(t *testing.T) {
 	}
 
 	// Test that the content is copied from the image to the volume
-	cmd := exec.Command(dockerBinary, "run", "--rm", "-v", "/hello", name, "sh", "-c", "find", "/hello")
+	cmd := exec.Command(dockerBinary, "run", "--rm", "-v", "/hello", name, "find", "/hello")
 	out, _, err := runCommandWithOutput(cmd)
 	if err != nil {
 		t.Fatal(err, out)