Combine SetupWorkingDirectory for Linux and Windows
Signed-off-by: Darren Stahl <darst@microsoft.com> Upstream-commit: 6791230320fa9f8ae9df3e90d5c52d85621828a0 Component: engine
This commit is contained in:
@ -1723,7 +1723,7 @@ func (s *DockerSuite) TestRunWorkdirExistsAndIsFile(c *check.C) {
|
||||
expected := "Cannot mkdir: /bin/cat is not a directory"
|
||||
if daemonPlatform == "windows" {
|
||||
existingFile = `\windows\system32\ntdll.dll`
|
||||
expected = "The directory name is invalid"
|
||||
expected = `Cannot mkdir: \windows\system32\ntdll.dll is not a directory.`
|
||||
}
|
||||
|
||||
out, exitCode, err := dockerCmdWithError("run", "-w", existingFile, "busybox")
|
||||
|
||||
Reference in New Issue
Block a user