tests: Fix test skipping with old osinfo-db

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2022-06-18 17:15:11 -04:00
parent 48f66f27fd
commit 280c30736f

View File

@ -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"
######################