Browse code

integration test for missing arg error code

Signed-off-by: Andrew Hsu <andrewhsu@docker.com>

Andrew Hsu authored on 2016/09/29 08:33:45
Showing 1 changed files
... ...
@@ -902,3 +902,8 @@ func (s *DockerSuite) TestPsByOrder(c *check.C) {
902 902
 	c.Assert(err, checker.NotNil)
903 903
 	c.Assert(strings.TrimSpace(out), checker.Equals, fmt.Sprintf("%s\n%s", container2, container1))
904 904
 }
905
+
906
+func (s *DockerSuite) TestPsFilterMissingArgErrorCode(c *check.C) {
907
+	_, errCode, _ := dockerCmdWithError("ps", "--filter")
908
+	c.Assert(errCode, checker.Equals, 125)
909
+}