mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Use testEnv methods and remove most of the global variables
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/docker/docker/pkg/testutil/cmd"
|
||||
"os/exec"
|
||||
|
||||
"github.com/docker/docker/pkg/testutil/cmd"
|
||||
)
|
||||
|
||||
func getPrefixAndSlashFromDaemonPlatform() (prefix, slash string) {
|
||||
if daemonPlatform == "windows" {
|
||||
if testEnv.DaemonPlatform() == "windows" {
|
||||
return "c:", `\`
|
||||
}
|
||||
return "", "/"
|
||||
|
||||
Reference in New Issue
Block a user