tests: skip checking rdma cgroup

rdma was added in most recent kernels and libcontainer/docker
don't isolate them by default.
This commit is contained in:
Mahmood Ali 2018-12-11 15:13:43 -05:00
parent 095dba72ac
commit e6e71fb47a

View file

@ -466,8 +466,9 @@ func TestExecDriver_HandlerExec(t *testing.T) {
if line == "" {
continue
}
// Skip systemd cgroup
if strings.HasPrefix(line, "1:name=systemd") {
// Skip systemd and rdma cgroups; rdma was added in most recent kernels and libcontainer/docker
// don't isolate them by default.
if strings.HasPrefix(line, "1:name=systemd") || strings.Contains(line, ":rdma:") {
continue
}
if !strings.Contains(line, ":/nomad/") {