From 52118df432353dee2a37dd284462c4c021174a50 Mon Sep 17 00:00:00 2001 From: Jessica Frazelle Date: Thu, 7 May 2015 17:39:39 -0700 Subject: [PATCH] fix lxc because it doesnt have the hardened libcontainer stuff Signed-off-by: Jessica Frazelle --- integration-cli/docker_cli_run_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/integration-cli/docker_cli_run_test.go b/integration-cli/docker_cli_run_test.go index e8e1725d7b..a6bc54d314 100644 --- a/integration-cli/docker_cli_run_test.go +++ b/integration-cli/docker_cli_run_test.go @@ -3150,6 +3150,7 @@ func (s *DockerSuite) TestRunWriteToProcAsound(c *check.C) { } func (s *DockerSuite) TestRunReadProcTimer(c *check.C) { + testRequires(c, NativeExecDriver) defer deleteAllContainers() out, code, err := runCommandWithOutput(exec.Command(dockerBinary, "run", "busybox", "cat", "/proc/timer_stats")) if err != nil || code != 0 { @@ -3161,6 +3162,7 @@ func (s *DockerSuite) TestRunReadProcTimer(c *check.C) { } func (s *DockerSuite) TestRunReadProcLatency(c *check.C) { + testRequires(c, NativeExecDriver) // some kernels don't have this configured so skip the test if this file is not found // on the host running the tests. if _, err := os.Stat("/proc/latency_stats"); err != nil { @@ -3178,6 +3180,7 @@ func (s *DockerSuite) TestRunReadProcLatency(c *check.C) { } func (s *DockerSuite) TestMountIntoProc(c *check.C) { + testRequires(c, NativeExecDriver) defer deleteAllContainers() code, err := runCommand(exec.Command(dockerBinary, "run", "-v", "/proc//sys", "busybox", "true")) if err == nil || code == 0 { @@ -3186,6 +3189,7 @@ 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 {