Windows: Fixed escaping of command line arguments

This fixes some tests that were failing on windows

Signed-off-by: Darren Stahl <darst@microsoft.com>
Upstream-commit: ca5cc770b9f0d473b285f55eb78d507a8669ee41
Component: engine
This commit is contained in:
Darren Stahl
2015-09-23 16:35:44 -07:00
parent a59918e10b
commit d675aaa69f
2 changed files with 5 additions and 7 deletions
@@ -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")
}