summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2022-06-18 17:15:11 -0400
committerCole Robinson <crobinso@redhat.com>2022-06-18 17:42:44 -0400
commit280c30736fc5e20204b09a6034d10ab0efbadff7 (patch)
tree154950caa3eb68a3b2a7859159dc1f509ded876f /tests
parent48f66f27fd8ca4694b2dd9f17602db857a924083 (diff)
downloadvirt-manager-280c30736fc5e20204b09a6034d10ab0efbadff7.tar.gz
tests: Fix test skipping with old osinfo-db
Signed-off-by: Cole Robinson <crobinso@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/test_cli.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_cli.py b/tests/test_cli.py
index 7b708f0f..19399452 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -119,7 +119,8 @@ def no_osinfo_unattended_win_drivers_cb():
def no_osinfo_linux2020_virtio():
linux2020 = OSDB.lookup_os("linux2020")
- return not linux2020 or not linux2020.supports_virtiogpu()
+ if not linux2020 or not linux2020.supports_virtiogpu():
+ return "osinfo is too old: missing linux2020 with virtio-gpu"
######################