From 64b5fe76cff87784124a3d2d824d99ec9ce3b5c2 Mon Sep 17 00:00:00 2001 From: Andrew Hsu Date: Wed, 28 Sep 2016 16:33:45 -0700 Subject: [PATCH] integration test for missing arg error code Signed-off-by: Andrew Hsu --- integration-cli/docker_cli_ps_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/integration-cli/docker_cli_ps_test.go b/integration-cli/docker_cli_ps_test.go index 225c6f5424..a8e250d8fb 100644 --- a/integration-cli/docker_cli_ps_test.go +++ b/integration-cli/docker_cli_ps_test.go @@ -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) +}