diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-03-09 10:28:24 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-09 10:28:24 -0500 |
commit | 418ab2e5e154cb0df13f2e901cf4aea31a5cd0a9 (patch) | |
tree | 8eec9ed44001e446dbfb206f9da4d308edfeec5a /test | |
parent | ea4248dc26f93bcabaa8a7267bfaf9ee40254666 (diff) | |
parent | d2f77c256836e8a1a562d56eed7d92fdb18a2f76 (diff) | |
download | podman-418ab2e5e154cb0df13f2e901cf4aea31a5cd0a9.tar.gz podman-418ab2e5e154cb0df13f2e901cf4aea31a5cd0a9.tar.bz2 podman-418ab2e5e154cb0df13f2e901cf4aea31a5cd0a9.zip |
Merge pull request #13421 from hshiina/device-rule
Set default rule at the head of device configuration
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/run_device_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/e2e/run_device_test.go b/test/e2e/run_device_test.go index b8bdc84f8..479837dda 100644 --- a/test/e2e/run_device_test.go +++ b/test/e2e/run_device_test.go @@ -44,6 +44,11 @@ var _ = Describe("Podman run device", func() { session := podmanTest.Podman([]string{"run", "-q", "--security-opt", "label=disable", "--device", "/dev/kmsg", ALPINE, "test", "-c", "/dev/kmsg"}) session.WaitWithDefaultTimeout() Expect(session).Should(Exit(0)) + if !isRootless() { + session = podmanTest.Podman([]string{"run", "-q", "--security-opt", "label=disable", "--device", "/dev/kmsg", "--cap-add", "SYS_ADMIN", ALPINE, "head", "-n", "1", "/dev/kmsg"}) + session.WaitWithDefaultTimeout() + Expect(session).Should(Exit(0)) + } }) It("podman run device rename test", func() { |