summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Evich <cevich@redhat.com>2021-06-30 11:12:48 -0400
committerChris Evich <cevich@redhat.com>2021-08-17 16:16:24 -0400
commit1d54315b674d94ff18bd8cd97e2b232a161db261 (patch)
tree996eae5633f02d76f1b471cd34e38d8567d1ffb3 /test
parentc0d0d31c43923ad0cd41729a01b474d75267cc23 (diff)
downloadpodman-1d54315b674d94ff18bd8cd97e2b232a161db261.tar.gz
podman-1d54315b674d94ff18bd8cd97e2b232a161db261.tar.bz2
podman-1d54315b674d94ff18bd8cd97e2b232a161db261.zip
Workaround host availability of /dev/kvm
This test has been failing for a long time but nobody noticed because CI doesn't have the device node (nested-VM support was disabled). After having enabled nested VM support, tests fail due to some unknown special-handling of this device. Fix both problems by removing the `skip()` and switching to a more generic device which is only present when `--privileged` is used. Signed-off-by: Chris Evich <cevich@redhat.com>
Diffstat (limited to 'test')
-rw-r--r--test/e2e/run_device_test.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/e2e/run_device_test.go b/test/e2e/run_device_test.go
index 40de1d50d..e65655e84 100644
--- a/test/e2e/run_device_test.go
+++ b/test/e2e/run_device_test.go
@@ -89,10 +89,7 @@ var _ = Describe("Podman run device", func() {
})
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 := podmanTest.Podman([]string{"run", "--privileged", ALPINE, "ls", "/dev/kmsg"})
session.WaitWithDefaultTimeout()
Expect(session).Should(Exit(0))
})