Browse code

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 authored on 2015/04/02 09:47:36
Showing 1 changed files
... ...
@@ -175,6 +175,7 @@ func TestRunContainerWithCgroupParentAbsPath(t *testing.T) {
175 175
 }
176 176
 
177 177
 func TestRunDeviceDirectory(t *testing.T) {
178
+	testRequires(t, NativeExecDriver)
178 179
 	defer deleteAllContainers()
179 180
 	cmd := exec.Command(dockerBinary, "run", "--device", "/dev/snd:/dev/snd", "busybox", "sh", "-c", "ls /dev/snd/")
180 181