mirror of
https://github.com/moby/moby.git
synced 2026-08-08 17:11:38 +00:00
Merge pull request #26999 from andrewhsu/test-exit-code-125
integration test for missing arg error code
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user