From f472c7236f7f7ea069b2997391569e5ec60981ab Mon Sep 17 00:00:00 2001 From: Jessica Frazelle Date: Wed, 1 Apr 2015 17:47:36 -0700 Subject: [PATCH] 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 (github: jfrazelle) --- integration-cli/docker_cli_run_unix_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/integration-cli/docker_cli_run_unix_test.go b/integration-cli/docker_cli_run_unix_test.go index e577b142b7..8e0cc9be3a 100644 --- a/integration-cli/docker_cli_run_unix_test.go +++ b/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/")