integration test for missing arg error code
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
This commit is contained in:
parent
601004e1a7
commit
64b5fe76cf
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue