1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Change TestCgroupNamespacesRunPrivileged requirement

This test requires cgroup namespaces to be enabled, not the other way
around.

Signed-off-by: Rob Gulewich <rgulewich@netflix.com>
This commit is contained in:
Rob Gulewich 2019-07-19 16:05:47 -07:00
parent 08bc39c8f9
commit 96f6c81ab7

View file

@ -68,7 +68,7 @@ func TestCgroupNamespacesRun(t *testing.T) {
func TestCgroupNamespacesRunPrivileged(t *testing.T) { func TestCgroupNamespacesRunPrivileged(t *testing.T) {
skip.If(t, testEnv.DaemonInfo.OSType != "linux") skip.If(t, testEnv.DaemonInfo.OSType != "linux")
skip.If(t, testEnv.IsRemoteDaemon()) skip.If(t, testEnv.IsRemoteDaemon())
skip.If(t, requirement.CgroupNamespacesEnabled()) skip.If(t, !requirement.CgroupNamespacesEnabled())
// When the daemon defaults to private cgroup namespaces, privileged containers // When the daemon defaults to private cgroup namespaces, privileged containers
// launched should not be inside their own cgroup namespaces // launched should not be inside their own cgroup namespaces