summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-03-06 10:59:56 -0800
committerGitHub <noreply@github.com>2019-03-06 10:59:56 -0800
commitf50715ed25fd1bc58dad39982a2a5b5837dcd8ef (patch)
tree123b60e06eb870eb4a4019f4b854fc6b278a6a24 /test
parentfb14db49fed07b934d5e71e642d8e1d31194568b (diff)
parentc90e0ea346f8d7b01df4d55c58c4858b8208edf0 (diff)
downloadpodman-f50715ed25fd1bc58dad39982a2a5b5837dcd8ef.tar.gz
podman-f50715ed25fd1bc58dad39982a2a5b5837dcd8ef.tar.bz2
podman-f50715ed25fd1bc58dad39982a2a5b5837dcd8ef.zip
Merge pull request #2412 from QiWang19/iss2380
Enable specifying directory as device on container with --device
Diffstat (limited to 'test')
-rw-r--r--test/e2e/run_device_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/e2e/run_device_test.go b/test/e2e/run_device_test.go
index 4f26ac8ee..8734bb71c 100644
--- a/test/e2e/run_device_test.go
+++ b/test/e2e/run_device_test.go
@@ -72,4 +72,12 @@ var _ = Describe("Podman run device", func() {
session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Not(Equal(0)))
})
+
+ It("podman run device host device and container device parameter are directories", func() {
+ SystemExec("mkdir", []string{"/dev/foodevdir"})
+ SystemExec("mknod", []string{"/dev/foodevdir/null", "c", "1", "3"})
+ session := podmanTest.Podman([]string{"run", "-q", "--device", "/dev/foodevdir:/dev/bar", ALPINE, "ls", "/dev/bar/null"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ })
})