File 071-tests-cli-fix-aarch64-win11-with-latest-osinfo-db.patch of Package virt-manager

Subject: tests: cli: fix aarch64-win11 with latest osinfo-db
From: Cole Robinson crobinso@redhat.com Thu Feb 19 10:40:10 2026 -0500
Date: Thu Feb 19 11:12:20 2026 -0500:
Git: 23d6f9088f1007f2468d38d3a1e80d1e8cf9bcde

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

diff --git a/tests/data/cli/compare/virt-install-aarch64-win11.xml b/tests/data/cli/compare/virt-install-aarch64-win11.xml
index 75a35af6c..ce9c40240 100644
--- a/tests/data/cli/compare/virt-install-aarch64-win11.xml
+++ b/tests/data/cli/compare/virt-install-aarch64-win11.xml
@@ -8,7 +8,7 @@
   </metadata>
   <memory>65536</memory>
   <currentMemory>65536</currentMemory>
-  <vcpu>1</vcpu>
+  <vcpu>4</vcpu>
   <os firmware="efi">
     <type arch="aarch64" machine="virt">hvm</type>
   </os>
diff --git a/tests/test_cli.py b/tests/test_cli.py
index fb9106f8b..6dd4294f9 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -135,6 +135,12 @@ def no_osinfo_win11():
         return "osinfo is too old: no win11 entry"
 
 
+def no_osinfo_win11_aarch64():
+    win11 = OSDB.lookup_os("win11")
+    if not win11 or win11.get_recommended_resources().get_recommended_ncpus("aarch64") == 1:
+        return "osinfo is too old: no win11 aarch64 entry"
+
+
 ######################
 # Test class helpers #
 ######################
@@ -1807,6 +1813,7 @@ c.add_compare(
 c.add_compare(
     "--connect %(URI-KVM-AARCH64)s --disk %(EXISTIMG1)s --os-variant win11",
     "aarch64-win11",
+    prerun_check=no_osinfo_win11_aarch64,
 )
 
 
openSUSE Build Service is sponsored by