Migrate exec command to cobra

Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
Upstream-commit: 9d9dff3d0d9e92adf7c2e59f94c63766659d1d47
Component: engine
This commit is contained in:
Akihiro Suda
2016-06-20 13:27:56 +00:00
parent c45216ee6a
commit d22f93678b
9 changed files with 208 additions and 194 deletions

View File

@ -214,7 +214,7 @@ func (s *DockerSuite) TestExecParseError(c *check.C) {
cmd := exec.Command(dockerBinary, "exec", "top")
_, stderr, _, err := runCommandWithStdoutStderr(cmd)
c.Assert(err, checker.NotNil)
c.Assert(stderr, checker.Contains, "See '"+dockerBinary+" exec --help'")
c.Assert(stderr, checker.Contains, "See 'docker exec --help'")
}
func (s *DockerSuite) TestExecStopNotHanging(c *check.C) {