Merge pull request #26999 from andrewhsu/test-exit-code-125
integration test for missing arg error code
This commit is contained in:
commit
bc0465d2be
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