Signed-off-by: John Howard <jhoward@microsoft.com>

Revert "Combine SetupWorkingDirectory for Linux and Windows"

This reverts commit ec31741ca186278ea60faf49f85087c493e78806.
Upstream-commit: 54320d8d187d8b33be4fd33cfb3f8e486c6c8d90
Component: engine
This commit is contained in:
John Howard
2016-01-29 20:44:34 -08:00
parent 180ae31aca
commit 342ab710cd
4 changed files with 35 additions and 30 deletions

View File

@ -1724,7 +1724,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 = `Cannot mkdir: \windows\system32\ntdll.dll is not a directory.`
expected = "The directory name is invalid"
}
out, exitCode, err := dockerCmdWithError("run", "-w", existingFile, "busybox")