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:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user