From cfbbc38a5b17ed57bd378b755068a24acbcb33a6 Mon Sep 17 00:00:00 2001 From: Chris Evich Date: Wed, 30 Jun 2021 11:12:48 -0400 Subject: 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 --- test/e2e/run_device_test.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'test/e2e/run_device_test.go') 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)) }) -- cgit v1.2.3-54-g00ecf