integration test for missing arg error code

Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
This commit is contained in:
Andrew Hsu 2016-09-28 16:33:45 -07:00
parent 601004e1a7
commit 64b5fe76cf
1 changed files with 5 additions and 0 deletions

View File

@ -902,3 +902,8 @@ func (s *DockerSuite) TestPsByOrder(c *check.C) {
c.Assert(err, checker.NotNil)
c.Assert(strings.TrimSpace(out), checker.Equals, fmt.Sprintf("%s\n%s", container2, container1))
}
func (s *DockerSuite) TestPsFilterMissingArgErrorCode(c *check.C) {
_, errCode, _ := dockerCmdWithError("ps", "--filter")
c.Assert(errCode, checker.Equals, 125)
}