15370: Re-enable docker tests.
[arvados.git] / lib / crunchrun / cgroup_test.go
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 package crunchrun
6
7 import (
8         . "gopkg.in/check.v1"
9 )
10
11 type CgroupSuite struct{}
12
13 var _ = Suite(&CgroupSuite{})
14
15 func (s *CgroupSuite) TestFindCgroup(c *C) {
16         for _, s := range []string{"devices", "cpu", "cpuset"} {
17                 g, err := findCgroup(s)
18                 if c.Check(err, IsNil) {
19                         c.Check(g, Not(Equals), "", Commentf("subsys %q", s))
20                 }
21                 c.Logf("cgroup(%q) == %q", s, g)
22         }
23 }