Browse code

Update test for /sys mounting

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>

Michael Crosby authored on 2015/05/14 07:02:53
Showing 1 changed files
... ...
@@ -3213,8 +3213,8 @@ func (s *DockerSuite) TestMountIntoProc(c *check.C) {
3213 3213
 func (s *DockerSuite) TestMountIntoSys(c *check.C) {
3214 3214
 	testRequires(c, NativeExecDriver)
3215 3215
 	defer deleteAllContainers()
3216
-	code, err := runCommand(exec.Command(dockerBinary, "run", "-v", "/sys/", "busybox", "true"))
3217
-	if err == nil || code == 0 {
3218
-		c.Fatal("container should not be able to mount into /sys")
3216
+	_, err := runCommand(exec.Command(dockerBinary, "run", "-v", "/sys/fs/cgroup", "busybox", "true"))
3217
+	if err != nil {
3218
+		c.Fatal("container should be able to mount into /sys/fs/cgroup")
3219 3219
 	}
3220 3220
 }