瀏覽代碼

integration test for missing arg error code

Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
Andrew Hsu 8 年之前
父節點
當前提交
64b5fe76cf
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      integration-cli/docker_cli_ps_test.go

+ 5 - 0
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(err, checker.NotNil)
 	c.Assert(strings.TrimSpace(out), checker.Equals, fmt.Sprintf("%s\n%s", container2, container1))
 	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)
+}