]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuxmlconftest: Pin 'disk-network-gluster' case to qemu-9.1
authorPeter Krempa <pkrempa@redhat.com>
Thu, 10 Oct 2024 15:54:01 +0000 (17:54 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 16 Oct 2024 12:39:09 +0000 (14:39 +0200)
The gluster protocol was deprecated in qemu-9.2.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
tests/qemuxmlconfdata/disk-network-gluster.x86_64-9.1.0.args [moved from tests/qemuxmlconfdata/disk-network-gluster.x86_64-latest.args with 96% similarity]
tests/qemuxmlconfdata/disk-network-gluster.x86_64-9.1.0.xml [moved from tests/qemuxmlconfdata/disk-network-gluster.x86_64-latest.xml with 97% similarity]
tests/qemuxmlconfdata/disk-network-gluster.xml
tests/qemuxmlconftest.c

similarity index 96%
rename from tests/qemuxmlconfdata/disk-network-gluster.x86_64-latest.args
rename to tests/qemuxmlconfdata/disk-network-gluster.x86_64-9.1.0.args
index 786917ef88e6193138cbaa6a1e344c734ce108ba..7cf4c4404bc1cacf6f54a6147ff2c779ed0a3b98 100644 (file)
@@ -10,7 +10,7 @@ XDG_CONFIG_HOME=/var/lib/libvirt/qemu/domain--1-QEMUGuest1/.config \
 -name guest=QEMUGuest1,debug-threads=on \
 -S \
 -object '{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/var/lib/libvirt/qemu/domain--1-QEMUGuest1/master-key.aes"}' \
--machine pc,usb=off,dump-guest-core=off,memory-backend=pc.ram,acpi=off \
+-machine pc-i440fx-9.1,usb=off,dump-guest-core=off,memory-backend=pc.ram,acpi=off \
 -accel tcg \
 -cpu qemu64 \
 -m size=219136k \
similarity index 97%
rename from tests/qemuxmlconfdata/disk-network-gluster.x86_64-latest.xml
rename to tests/qemuxmlconfdata/disk-network-gluster.x86_64-9.1.0.xml
index 3213a6d7c41b305b813e135b98b39f12c2c24dd3..9195e67bf533a3258f9db52aafbfff40d1de9b3a 100644 (file)
@@ -5,7 +5,7 @@
   <currentMemory unit='KiB'>219136</currentMemory>
   <vcpu placement='static'>1</vcpu>
   <os>
-    <type arch='x86_64' machine='pc'>hvm</type>
+    <type arch='x86_64' machine='pc-i440fx-9.1'>hvm</type>
     <boot dev='hd'/>
   </os>
   <cpu mode='custom' match='exact' check='none'>
index 2ff28ad3a042ad9a252705a179890788672216f8..a6679fcc89bd4cb22b2c15fabb72303b2748e3cb 100644 (file)
@@ -5,7 +5,7 @@
   <currentMemory unit='KiB'>219136</currentMemory>
   <vcpu placement='static'>1</vcpu>
   <os>
-    <type arch='x86_64' machine='pc'>hvm</type>
+    <type arch='x86_64' machine='pc-i440fx-9.1'>hvm</type>
     <boot dev='hd'/>
   </os>
   <clock offset='utc'/>
index dfcf67d2d009ab48adb23884be078795bace2ff9..91daf955f5cad115c6842f8f5eace2e25dc803bf 100644 (file)
@@ -1576,7 +1576,8 @@ mymain(void)
     DO_TEST_CAPS_LATEST_PARSE_ERROR("disk-network-iscsi-auth-secrettype-invalid");
     DO_TEST_CAPS_LATEST_PARSE_ERROR("disk-network-iscsi-auth-wrong-secrettype");
     DO_TEST_CAPS_LATEST_PARSE_ERROR("disk-network-source-auth-both");
-    DO_TEST_CAPS_LATEST("disk-network-gluster");
+    /* 'gluster' protocol backend was deprecated in qemu-9.2 */
+    DO_TEST_CAPS_VER("disk-network-gluster", "9.1.0");
     DO_TEST_CAPS_LATEST("disk-network-rbd");
     DO_TEST_CAPS_VER_PARSE_ERROR("disk-network-rbd-encryption", "6.0.0");
     DO_TEST_CAPS_LATEST("disk-network-rbd-encryption");