Update test for /sys mounting

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby 2015-05-13 15:02:53 -07:00
parent 87c35d0e0a
commit 677d76cd4a
1 changed files with 3 additions and 3 deletions

View File

@ -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")
}
}