Combine SetupWorkingDirectory for Linux and Windows
Signed-off-by: Darren Stahl <darst@microsoft.com> Upstream-commit: ec31741ca186278ea60faf49f85087c493e78806 Component: engine
This commit is contained in:
@@ -1701,7 +1701,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