From 280c30736fc5e20204b09a6034d10ab0efbadff7 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Sat, 18 Jun 2022 17:15:11 -0400 Subject: [PATCH] tests: Fix test skipping with old osinfo-db Signed-off-by: Cole Robinson --- tests/test_cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_cli.py b/tests/test_cli.py index 7b708f0fb..19399452f 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" ######################