integration-cli: Enable TestExecStartFails on Windows
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
(cherry picked from commit be34e93f20
)
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
parent
d9433ee096
commit
b56fe59505
1 changed files with 6 additions and 4 deletions
|
@ -498,16 +498,18 @@ func (s *DockerSuite) TestExecUlimits(c *testing.T) {
|
|||
|
||||
// #15750
|
||||
func (s *DockerSuite) TestExecStartFails(c *testing.T) {
|
||||
// TODO Windows CI. This test should be portable. Figure out why it fails
|
||||
// currently.
|
||||
testRequires(c, DaemonIsLinux)
|
||||
name := "exec-15750"
|
||||
runSleepingContainer(c, "-d", "--name", name)
|
||||
assert.NilError(c, waitRun(name))
|
||||
|
||||
out, _, err := dockerCmdWithError("exec", name, "no-such-cmd")
|
||||
assert.ErrorContains(c, err, "", out)
|
||||
assert.Assert(c, strings.Contains(out, "executable file not found"))
|
||||
|
||||
expectedMsg := "executable file not found"
|
||||
if DaemonIsWindows() {
|
||||
expectedMsg = "The system cannot find the file specified"
|
||||
}
|
||||
assert.Assert(c, is.Contains(out, expectedMsg))
|
||||
}
|
||||
|
||||
// Fix regression in https://github.com/docker/docker/pull/26461#issuecomment-250287297
|
||||
|
|
Loading…
Add table
Reference in a new issue