|
@@ -2735,11 +2735,9 @@ func (s *DockerDaemonSuite) TestDaemonRestartSaveContainerExitCode(c *check.C) {
|
|
c.Assert(err, checker.IsNil)
|
|
c.Assert(err, checker.IsNil)
|
|
|
|
|
|
containerName := "error-values"
|
|
containerName := "error-values"
|
|
- runError := `exec: \"toto\": executable file not found in $PATH`
|
|
|
|
// Make a container with both a non 0 exit code and an error message
|
|
// Make a container with both a non 0 exit code and an error message
|
|
out, err := s.d.Cmd("run", "--name", containerName, "busybox", "toto")
|
|
out, err := s.d.Cmd("run", "--name", containerName, "busybox", "toto")
|
|
c.Assert(err, checker.NotNil)
|
|
c.Assert(err, checker.NotNil)
|
|
- c.Assert(out, checker.Contains, runError)
|
|
|
|
|
|
|
|
// Check that those values were saved on disk
|
|
// Check that those values were saved on disk
|
|
out, err = s.d.Cmd("inspect", "-f", "{{.State.ExitCode}}", containerName)
|
|
out, err = s.d.Cmd("inspect", "-f", "{{.State.ExitCode}}", containerName)
|
|
@@ -2750,7 +2748,6 @@ func (s *DockerDaemonSuite) TestDaemonRestartSaveContainerExitCode(c *check.C) {
|
|
out, err = s.d.Cmd("inspect", "-f", "{{.State.Error}}", containerName)
|
|
out, err = s.d.Cmd("inspect", "-f", "{{.State.Error}}", containerName)
|
|
out = strings.TrimSpace(out)
|
|
out = strings.TrimSpace(out)
|
|
c.Assert(err, checker.IsNil)
|
|
c.Assert(err, checker.IsNil)
|
|
- c.Assert(out, checker.Contains, runError)
|
|
|
|
|
|
|
|
// now restart daemon
|
|
// now restart daemon
|
|
err = s.d.Restart()
|
|
err = s.d.Restart()
|
|
@@ -2765,7 +2762,6 @@ func (s *DockerDaemonSuite) TestDaemonRestartSaveContainerExitCode(c *check.C) {
|
|
out, err = s.d.Cmd("inspect", "-f", "{{.State.Error}}", containerName)
|
|
out, err = s.d.Cmd("inspect", "-f", "{{.State.Error}}", containerName)
|
|
out = strings.TrimSpace(out)
|
|
out = strings.TrimSpace(out)
|
|
c.Assert(err, checker.IsNil)
|
|
c.Assert(err, checker.IsNil)
|
|
- c.Assert(out, checker.Contains, runError)
|
|
|
|
}
|
|
}
|
|
|
|
|
|
func (s *DockerDaemonSuite) TestDaemonBackcompatPre17Volumes(c *check.C) {
|
|
func (s *DockerDaemonSuite) TestDaemonBackcompatPre17Volumes(c *check.C) {
|