Explorar o código

Merge pull request #13080 from jfrazelle/fix-tests-where-requires-libcontainerr-security

fix lxc because it doesnt have the hardened libcontainer stuff
Michael Crosby %!s(int64=10) %!d(string=hai) anos
pai
achega
b94107c4d8
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      integration-cli/docker_cli_run_test.go

+ 4 - 0
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 {