@@ -28,7 +28,6 @@ import (
2828 "github.com/docker/docker/pkg/mount"
2929 "github.com/docker/docker/pkg/stringid"
3030 "github.com/docker/docker/pkg/stringutils"
31- "github.com/docker/docker/pkg/testutil"
3231 icmd "github.com/docker/docker/pkg/testutil/cmd"
3332 "github.com/docker/docker/runconfig"
3433 "github.com/docker/go-connections/nat"
@@ -495,7 +494,7 @@ func (s *DockerSuite) TestRunVolumesFromInReadWriteMode(c *check.C) {
495494func (s * DockerSuite ) TestVolumesFromGetsProperMode (c * check.C ) {
496495 testRequires (c , SameHostDaemon )
497496 prefix , slash := getPrefixAndSlashFromDaemonPlatform ()
498- hostpath := testutil . RandomTmpDirPath ("test" , testEnv .DaemonPlatform ())
497+ hostpath := RandomTmpDirPath ("test" , testEnv .DaemonPlatform ())
499498 if err := os .MkdirAll (hostpath , 0755 ); err != nil {
500499 c .Fatalf ("Failed to create %s: %q" , hostpath , err )
501500 }
@@ -518,8 +517,8 @@ func (s *DockerSuite) TestVolumesFromGetsProperMode(c *check.C) {
518517
519518// Test for GH#10618
520519func (s * DockerSuite ) TestRunNoDupVolumes (c * check.C ) {
521- path1 := testutil . RandomTmpDirPath ("test1" , testEnv .DaemonPlatform ())
522- path2 := testutil . RandomTmpDirPath ("test2" , testEnv .DaemonPlatform ())
520+ path1 := RandomTmpDirPath ("test1" , testEnv .DaemonPlatform ())
521+ path2 := RandomTmpDirPath ("test2" , testEnv .DaemonPlatform ())
523522
524523 someplace := ":/someplace"
525524 if testEnv .DaemonPlatform () == "windows" {
@@ -2183,7 +2182,7 @@ func (s *DockerSuite) TestVolumesNoCopyData(c *check.C) {
21832182 c .Fatalf ("Data was copied on volumes-from but shouldn't be:\n %q" , out )
21842183 }
21852184
2186- tmpDir := testutil . RandomTmpDirPath ("docker_test_bind_mount_copy_data" , testEnv .DaemonPlatform ())
2185+ tmpDir := RandomTmpDirPath ("docker_test_bind_mount_copy_data" , testEnv .DaemonPlatform ())
21872186 if out , _ , err := dockerCmdWithError ("run" , "-v" , tmpDir + ":/foo" , "dataimage" , "ls" , "-lh" , "/foo/bar" ); err == nil || ! strings .Contains (out , "No such file or directory" ) {
21882187 c .Fatalf ("Data was copied on bind mount but shouldn't be:\n %q" , out )
21892188 }
0 commit comments