|
@@ -28,7 +28,6 @@ import (
|
|
|
"github.com/docker/docker/pkg/mount"
|
|
|
"github.com/docker/docker/pkg/stringid"
|
|
|
"github.com/docker/docker/pkg/stringutils"
|
|
|
- "github.com/docker/docker/pkg/testutil"
|
|
|
icmd "github.com/docker/docker/pkg/testutil/cmd"
|
|
|
"github.com/docker/docker/runconfig"
|
|
|
"github.com/docker/go-connections/nat"
|
|
@@ -495,7 +494,7 @@ func (s *DockerSuite) TestRunVolumesFromInReadWriteMode(c *check.C) {
|
|
|
func (s *DockerSuite) TestVolumesFromGetsProperMode(c *check.C) {
|
|
|
testRequires(c, SameHostDaemon)
|
|
|
prefix, slash := getPrefixAndSlashFromDaemonPlatform()
|
|
|
- hostpath := testutil.RandomTmpDirPath("test", testEnv.DaemonPlatform())
|
|
|
+ hostpath := RandomTmpDirPath("test", testEnv.DaemonPlatform())
|
|
|
if err := os.MkdirAll(hostpath, 0755); err != nil {
|
|
|
c.Fatalf("Failed to create %s: %q", hostpath, err)
|
|
|
}
|
|
@@ -518,8 +517,8 @@ func (s *DockerSuite) TestVolumesFromGetsProperMode(c *check.C) {
|
|
|
|
|
|
// Test for GH#10618
|
|
|
func (s *DockerSuite) TestRunNoDupVolumes(c *check.C) {
|
|
|
- path1 := testutil.RandomTmpDirPath("test1", testEnv.DaemonPlatform())
|
|
|
- path2 := testutil.RandomTmpDirPath("test2", testEnv.DaemonPlatform())
|
|
|
+ path1 := RandomTmpDirPath("test1", testEnv.DaemonPlatform())
|
|
|
+ path2 := RandomTmpDirPath("test2", testEnv.DaemonPlatform())
|
|
|
|
|
|
someplace := ":/someplace"
|
|
|
if testEnv.DaemonPlatform() == "windows" {
|
|
@@ -2183,7 +2182,7 @@ func (s *DockerSuite) TestVolumesNoCopyData(c *check.C) {
|
|
|
c.Fatalf("Data was copied on volumes-from but shouldn't be:\n%q", out)
|
|
|
}
|
|
|
|
|
|
- tmpDir := testutil.RandomTmpDirPath("docker_test_bind_mount_copy_data", testEnv.DaemonPlatform())
|
|
|
+ tmpDir := RandomTmpDirPath("docker_test_bind_mount_copy_data", testEnv.DaemonPlatform())
|
|
|
if out, _, err := dockerCmdWithError("run", "-v", tmpDir+":/foo", "dataimage", "ls", "-lh", "/foo/bar"); err == nil || !strings.Contains(out, "No such file or directory") {
|
|
|
c.Fatalf("Data was copied on bind mount but shouldn't be:\n%q", out)
|
|
|
}
|