Browse code

Merge pull request #6926 from LK4D4/log_for_tar_test

Simple additions to TestBuildAddTar

Tibor Vass authored on 2014/07/10 00:40:55
Showing 1 changed files
... ...
@@ -1733,7 +1733,8 @@ RUN [ "$(cat /testfile)" = 'test!' ]`
1733 1733
 }
1734 1734
 
1735 1735
 func TestBuildAddTar(t *testing.T) {
1736
-
1736
+	name := "testbuildaddtar"
1737
+	defer deleteImages(name)
1737 1738
 	checkOutput := func(out string) {
1738 1739
 		n := -1
1739 1740
 		x := ""
... ...
@@ -1756,10 +1757,11 @@ func TestBuildAddTar(t *testing.T) {
1756 1756
 
1757 1757
 	for _, n := range []string{"1", "2"} {
1758 1758
 		buildDirectory := filepath.Join(workingDirectory, "build_tests", "TestBuildAddTar", n)
1759
-		buildCmd := exec.Command(dockerBinary, "build", "-t", "testbuildaddtar", ".")
1759
+		buildCmd := exec.Command(dockerBinary, "build", "-t", name, ".")
1760 1760
 		buildCmd.Dir = buildDirectory
1761 1761
 		out, _, err := runCommandWithOutput(buildCmd)
1762 1762
 		errorOut(err, t, fmt.Sprintf("build failed to complete for TestBuildAddTar/%s: %v", n, err))
1763 1763
 		checkOutput(out)
1764 1764
 	}
1765
+	logDone("build - ADD tar")
1765 1766
 }