Browse code

Update TestEnvironment to explicitly set "HOME" to be empty so it gets autofilled

Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)

Tianon Gravi authored on 2014/08/01 03:45:32
Showing 1 changed files
... ...
@@ -657,7 +657,7 @@ func TestRunTwoConcurrentContainers(t *testing.T) {
657 657
 }
658 658
 
659 659
 func TestEnvironment(t *testing.T) {
660
-	cmd := exec.Command(dockerBinary, "run", "-h", "testing", "-e=FALSE=true", "-e=TRUE", "-e=TRICKY", "busybox", "env")
660
+	cmd := exec.Command(dockerBinary, "run", "-h", "testing", "-e=FALSE=true", "-e=TRUE", "-e=TRICKY", "-e=HOME=", "busybox", "env")
661 661
 	cmd.Env = append(os.Environ(),
662 662
 		"TRUE=false",
663 663
 		"TRICKY=tri\ncky\n",