Browse Source

fix device test on lxc, on lxc in contianers there are no dirs with devices in /dev, but this works outside a container...

Docker-DCO-1.1-Signed-off-by: Jessie Frazelle <princess@docker.com> (github: jfrazelle)
Jessica Frazelle 10 years ago
parent
commit
f472c7236f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      integration-cli/docker_cli_run_unix_test.go

+ 1 - 0
integration-cli/docker_cli_run_unix_test.go

@@ -175,6 +175,7 @@ func TestRunContainerWithCgroupParentAbsPath(t *testing.T) {
 }
 
 func TestRunDeviceDirectory(t *testing.T) {
+	testRequires(t, NativeExecDriver)
 	defer deleteAllContainers()
 	cmd := exec.Command(dockerBinary, "run", "--device", "/dev/snd:/dev/snd", "busybox", "sh", "-c", "ls /dev/snd/")