summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-07-18 19:50:22 +0200
committerGitHub <noreply@github.com>2019-07-18 19:50:22 +0200
commit2254a35d3a61c6d0793b8d6994698ab5bad1d6ac (patch)
tree241a88f597c90da1a54df2406c4d9f3d8edd1455 /test/e2e
parent1065548f9134e0e02bc6ce947da8c140c1a83040 (diff)
parent350ede1eeb6ab33bce2918d7768b940c255e63c6 (diff)
downloadpodman-2254a35d3a61c6d0793b8d6994698ab5bad1d6ac.tar.gz
podman-2254a35d3a61c6d0793b8d6994698ab5bad1d6ac.tar.bz2
podman-2254a35d3a61c6d0793b8d6994698ab5bad1d6ac.zip
Merge pull request #3593 from giuseppe/rootless-privileged-devices
rootless: add host devices with --privileged
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/run_device_test.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/e2e/run_device_test.go b/test/e2e/run_device_test.go
index 2e537a9f9..cf7ce9cdf 100644
--- a/test/e2e/run_device_test.go
+++ b/test/e2e/run_device_test.go
@@ -85,4 +85,13 @@ var _ = Describe("Podman run device", func() {
session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0))
})
+
+ It("podman run device host device with --privileged", func() {
+ if _, err := os.Stat("/dev/kvm"); err != nil {
+ Skip("/dev/kvm not available")
+ }
+ session := podmanTest.Podman([]string{"run", "--privileged", ALPINE, "ls", "/dev/kvm"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ })
})