From 677d76cd4aadf7514a3ba4e6761880fc3817f573 Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Wed, 13 May 2015 15:02:53 -0700 Subject: [PATCH] Update test for /sys mounting Signed-off-by: Michael Crosby --- integration-cli/docker_cli_run_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/integration-cli/docker_cli_run_test.go b/integration-cli/docker_cli_run_test.go index 95c3651c43..10e8a5e9a4 100644 --- a/integration-cli/docker_cli_run_test.go +++ b/integration-cli/docker_cli_run_test.go @@ -3213,8 +3213,8 @@ func (s *DockerSuite) TestMountIntoProc(c *check.C) { func (s *DockerSuite) TestMountIntoSys(c *check.C) { testRequires(c, NativeExecDriver) defer deleteAllContainers() - code, err := runCommand(exec.Command(dockerBinary, "run", "-v", "/sys/", "busybox", "true")) - if err == nil || code == 0 { - c.Fatal("container should not be able to mount into /sys") + _, err := runCommand(exec.Command(dockerBinary, "run", "-v", "/sys/fs/cgroup", "busybox", "true")) + if err != nil { + c.Fatal("container should be able to mount into /sys/fs/cgroup") } }