Browse code

Merge pull request #8567 from LK4D4/add_log_done

Add logDone for TestBuildAddSingleFileToNonExistDir

Jessie Frazelle authored on 2014/10/18 03:20:12
Showing 1 changed files
... ...
@@ -491,8 +491,8 @@ func TestBuildCopyWildcardCache(t *testing.T) {
491 491
 	logDone("build - copy wild card cache")
492 492
 }
493 493
 
494
-func TestBuildAddSingleFileToNonExistDir(t *testing.T) {
495
-	name := "testaddsinglefiletononexistdir"
494
+func TestBuildAddSingleFileToNonExistingDir(t *testing.T) {
495
+	name := "testaddsinglefiletononexistingdir"
496 496
 	defer deleteImages(name)
497 497
 	ctx, err := fakeContext(`FROM busybox
498 498
 RUN echo 'dockerio:x:1001:1001::/bin:/bin/false' >> /etc/passwd
... ...
@@ -512,6 +512,8 @@ RUN [ $(ls -l /exists | awk '{print $3":"$4}') = 'dockerio:dockerio' ]`,
512 512
 	if _, err := buildImageFromContext(name, ctx, true); err != nil {
513 513
 		t.Fatal(err)
514 514
 	}
515
+
516
+	logDone("build - add single file to non-existing dir")
515 517
 }
516 518
 
517 519
 func TestBuildAddDirContentToRoot(t *testing.T) {
... ...
@@ -537,8 +539,8 @@ RUN [ $(ls -l /exists | awk '{print $3":"$4}') = 'dockerio:dockerio' ]`,
537 537
 	logDone("build - add directory contents to root")
538 538
 }
539 539
 
540
-func TestBuildAddDirContentToExistDir(t *testing.T) {
541
-	name := "testadddircontenttoexistdir"
540
+func TestBuildAddDirContentToExistingDir(t *testing.T) {
541
+	name := "testadddircontenttoexistingdir"
542 542
 	defer deleteImages(name)
543 543
 	ctx, err := fakeContext(`FROM busybox
544 544
 RUN echo 'dockerio:x:1001:1001::/bin:/bin/false' >> /etc/passwd