Browse code

Revert "Modify test to include /dev/shm sharing"

This reverts commit 457aeaa2e1bdbb75c5b3bcedacde460920965c2f.

Signed-off-by: David Calavera <david.calavera@gmail.com>

David Calavera authored on 2015/08/26 18:20:16
Showing 1 changed files
... ...
@@ -1889,7 +1889,7 @@ func (s *DockerSuite) TestRunModeIpcHost(c *check.C) {
1889 1889
 func (s *DockerSuite) TestRunModeIpcContainer(c *check.C) {
1890 1890
 	testRequires(c, SameHostDaemon)
1891 1891
 
1892
-	out, _ := dockerCmd(c, "run", "-d", "busybox", "sh", "-c", "echo -n test > /dev/shm/test && top")
1892
+	out, _ := dockerCmd(c, "run", "-d", "busybox", "top")
1893 1893
 
1894 1894
 	id := strings.TrimSpace(out)
1895 1895
 	state, err := inspectField(id, "State.Running")
... ...
@@ -1910,11 +1910,6 @@ func (s *DockerSuite) TestRunModeIpcContainer(c *check.C) {
1910 1910
 	if parentContainerIpc != out {
1911 1911
 		c.Fatalf("IPC different with --ipc=container:%s %s != %s\n", id, parentContainerIpc, out)
1912 1912
 	}
1913
-
1914
-	catOutput, _ := dockerCmd(c, "run", fmt.Sprintf("--ipc=container:%s", id), "busybox", "cat", "/dev/shm/test")
1915
-	if catOutput != "test" {
1916
-		c.Fatalf("Output of /dev/shm/test expected test but found: %s", catOutput)
1917
-	}
1918 1913
 }
1919 1914
 
1920 1915
 func (s *DockerSuite) TestRunModeIpcContainerNotExists(c *check.C) {