Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit b75a3b9

Browse files
committed
tests: Fix with recent libvirt <topology> validation change
1 parent 8f80376 commit b75a3b9

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

tests/xmlparse-xml/change-guest-out.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919
<cpu match="strict">
2020
<model>qemu64</model>
2121
<vendor>qemuvendor</vendor>
22-
<topology sockets="1" cores="3" threads="1"/>
22+
<topology sockets="4" cores="3" threads="1"/>
2323
<feature policy="disable" name="foofeat"/>
2424
<feature policy="require" name="addfeature"/>
2525
</cpu>
2626
<clock offset="localtime"/>
2727
<on_poweroff>destroy</on_poweroff>
2828
<on_reboot>restart</on_reboot>
2929
<on_crash>restart</on_crash>
30-
<vcpu cpuset="1-5,15" current="22">30</vcpu>
30+
<vcpu cpuset="1-5,15" current="10">12</vcpu>
3131
<devices>
3232
<emulator>/usr/binnnn/fooemu</emulator>
3333
<disk type="file" device="floppy">

tests/xmlparse-xml/change-minimal-guest-in.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<type arch="i686">hvm</type>
88
<boot dev="hd"/>
99
</os>
10-
<vcpu cpuset="1-3">5</vcpu>
10+
<vcpu cpuset="1-3">4</vcpu>
1111
<devices>
1212
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
1313
<disk type="block" device="cdrom">

tests/xmlparse-xml/change-minimal-guest-out.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<type arch="i686">hvm</type>
88
<boot dev="hd"/>
99
</os>
10-
<vcpu cpuset="1-3">5</vcpu>
10+
<vcpu cpuset="1-3">4</vcpu>
1111
<devices>
1212
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
1313
<disk type="block" device="cdrom">

tests/xmlparse.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ def testAlterGuest(self):
9393

9494
check("name", "TestGuest", "change_name")
9595
check("description", None, "Hey desc changed")
96-
check("maxvcpus", 5, 30)
97-
check("vcpus", 30, 22)
96+
check("maxvcpus", 5, 12)
97+
check("vcpus", 12, 10)
9898
check("cpuset", "1-3", "1-8,^6", "1-5,15")
9999
check("maxmemory", 400, 500)
100100
check("memory", 200, 1000)
@@ -148,7 +148,7 @@ def feature_checker(prop, origval, newval):
148148
check("vendor", "Intel", "qemuvendor")
149149
check("threads", 2, 1)
150150
check("cores", 5, 3)
151-
check("sockets", 4, 1)
151+
check("sockets", 4, 4)
152152

153153
check = self._make_checker(guest.cpu.features[0])
154154
check("name", "x2apic", "foofeat")

0 commit comments

Comments
 (0)