diff options
author | Chris Evich <cevich@redhat.com> | 2021-06-30 11:12:48 -0400 |
---|---|---|
committer | Chris Evich <cevich@redhat.com> | 2021-08-11 13:07:00 -0400 |
commit | cfbbc38a5b17ed57bd378b755068a24acbcb33a6 (patch) | |
tree | 11bdcc9e84fd516f636d99b8ba3ce005bb3b4f64 | |
parent | 1968fdc874516e1195985024fd268d9a8da22953 (diff) | |
download | podman-cfbbc38a5b17ed57bd378b755068a24acbcb33a6.tar.gz podman-cfbbc38a5b17ed57bd378b755068a24acbcb33a6.tar.bz2 podman-cfbbc38a5b17ed57bd378b755068a24acbcb33a6.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>
-rw-r--r-- | test/e2e/run_device_test.go | 5 |
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)) }) |