File 081-tests-properly-skip-win11-aarch64-test-on-old-osinfo.patch of Package virt-manager

Subject: tests: properly skip win11 aarch64 test on old osinfo
From: Cole Robinson crobinso@redhat.com Tue Feb 24 10:40:29 2026 -0500
Date: Wed Mar 4 21:12:19 2026 +0100:
Git: b2b32ccc7913bd21530b03dfa6b65e863b6896ed

Fixes my previous commit 23d6f9088f1007f2468d38d3a1e80d1e8cf9bcde

Signed-off-by: Cole Robinson <crobinso@redhat.com>

diff --git a/tests/test_cli.py b/tests/test_cli.py
index 1ee219573..67c8220a6 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -137,7 +137,7 @@ def no_osinfo_win11():
 
 def no_osinfo_win11_aarch64():
     win11 = OSDB.lookup_os("win11")
-    if not win11 or win11.get_recommended_resources().get_recommended_ncpus("aarch64") == 1:
+    if not win11 or win11.get_recommended_resources().get_recommended_ncpus("aarch64") is None:
         return "osinfo is too old: no win11 aarch64 entry"
 
 
openSUSE Build Service is sponsored by