Skip to content

Commit

Permalink
add docker import test with a tag. Fixes moby#7714
Browse files Browse the repository at this point in the history
Signed-off-by: Lei Jitang <[email protected]>
  • Loading branch information
coolljt0725 committed Aug 26, 2014
1 parent 79cf839 commit 7e72ed7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration-cli/docker_cli_export_import_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func TestExportContainerAndImportImage(t *testing.T) {
out, _, err = runCommandWithOutput(exportCmd)
errorOut(err, t, fmt.Sprintf("failed to export container: %v %v", out, err))

importCmdFinal := `cat /tmp/testexp.tar | docker import - testexp`
importCmdFinal := `cat /tmp/testexp.tar | docker import - repo/testexp:v1`
importCmd := exec.Command("bash", "-c", importCmdFinal)
out, _, err = runCommandWithOutput(importCmd)
errorOut(err, t, fmt.Sprintf("failed to import image: %v %v", out, err))
Expand All @@ -41,7 +41,7 @@ func TestExportContainerAndImportImage(t *testing.T) {
errorOut(err, t, fmt.Sprintf("output should've been an image id: %v %v", out, err))

deleteContainer(cleanedContainerID)
deleteImages("testexp")
deleteImages("repo/testexp:v1")

os.Remove("/tmp/testexp.tar")

Expand Down

0 comments on commit 7e72ed7

Please sign in to comment.