Browse code

Fix integration tests by adding DOCKER_TMPDIR env in the test init function

Signed-off-by: Tibor Vass <teabee89@gmail.com>

Tibor Vass authored on 2014/08/07 04:55:50
Showing 1 changed files
... ...
@@ -31,6 +31,7 @@ const (
31 31
 	unitTestImageIDShort     = "83599e29c455"
32 32
 	unitTestNetworkBridge    = "testdockbr0"
33 33
 	unitTestStoreBase        = "/var/lib/docker/unit-tests"
34
+	unitTestDockerTmpdir     = "/var/lib/docker/tmp"
34 35
 	testDaemonAddr           = "127.0.0.1:4270"
35 36
 	testDaemonProto          = "tcp"
36 37
 	testDaemonHttpsProto     = "tcp"
... ...
@@ -90,6 +91,7 @@ func init() {
90 90
 	// To test other drivers, we need a dedicated driver validation suite.
91 91
 	os.Setenv("DOCKER_DRIVER", "vfs")
92 92
 	os.Setenv("TEST", "1")
93
+	os.Setenv("DOCKER_TMPDIR", unitTestDockerTmpdir)
93 94
 
94 95
 	// Hack to run sys init during unit testing
95 96
 	if selfPath := utils.SelfPath(); strings.Contains(selfPath, ".dockerinit") {