Merge pull request #16538 from Microsoft/10662-escapeargs

Windows: Fixed escaping of command line arguments
This commit is contained in:
David Calavera
2015-09-24 11:18:29 -07:00
2 changed files with 5 additions and 7 deletions
+3 -6
View File
@@ -450,12 +450,9 @@ func (s *DockerSuite) TestRunExitCode(c *check.C) {
exit int
err error
)
if daemonPlatform == "windows" {
// FIXME Windows: Work out the bug in busybox why exit doesn't set the exit code.
_, exit, err = dockerCmdWithError("run", WindowsBaseImage, "cmd", "/s", "/c", "exit 72")
} else {
_, exit, err = dockerCmdWithError("run", "busybox", "/bin/sh", "-c", "exit 72")
}
_, exit, err = dockerCmdWithError("run", "busybox", "/bin/sh", "-c", "exit 72")
if err == nil {
c.Fatal("should not have a non nil error")
}