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)
Upstream-commit: 8ea72422502d65421bc36dda48d384588f519a77
Component: engine
This commit is contained in:
Tianon Gravi
2014-07-31 12:45:32 -06:00
parent 0a4008fdb8
commit 15ebfed254

View File

@ -657,7 +657,7 @@ func TestRunTwoConcurrentContainers(t *testing.T) {
}
func TestEnvironment(t *testing.T) {
cmd := exec.Command(dockerBinary, "run", "-h", "testing", "-e=FALSE=true", "-e=TRUE", "-e=TRICKY", "busybox", "env")
cmd := exec.Command(dockerBinary, "run", "-h", "testing", "-e=FALSE=true", "-e=TRUE", "-e=TRICKY", "-e=HOME=", "busybox", "env")
cmd.Env = append(os.Environ(),
"TRUE=false",
"TRICKY=tri\ncky\n",