Skip test if not have Cpu quota or Cpu period

Closes: #13522

Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
This commit is contained in:
Qiang Huang
2015-05-28 14:59:58 +08:00
parent 2daede5a9c
commit 34e5b6af19
3 changed files with 36 additions and 13 deletions
+1
View File
@@ -5272,6 +5272,7 @@ RUN [ "/hello" ]`, map[string]string{})
}
func (s *DockerSuite) TestBuildResourceConstraintsAreUsed(c *check.C) {
testRequires(c, CpuCfsQuota)
name := "testbuildresourceconstraints"
ctx, err := fakeContext(`