Fix some tests
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
19c3e4cb98
commit
153e485bb7
|
@ -20,17 +20,17 @@
|
|||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<disk type="file" device="disk">
|
||||
<driver name="qemu" type="qcow2"/>
|
||||
<source file="/home/crobinso/src/virt-manager/tests/image-xml/image-kernel.xml"/>
|
||||
<source file="REPLACEME/tests/image-xml/image-kernel.xml"/>
|
||||
<target dev="hda" bus="ide"/>
|
||||
</disk>
|
||||
<disk type="file" device="disk">
|
||||
<driver name="qemu" type="qcow"/>
|
||||
<source file="/home/crobinso/src/virt-manager/tests/image-xml/image.xml"/>
|
||||
<source file="REPLACEME/tests/image-xml/image.xml"/>
|
||||
<target dev="hdb" bus="ide"/>
|
||||
</disk>
|
||||
<disk type="file" device="disk">
|
||||
<driver name="qemu" type="vmdk"/>
|
||||
<source file="/home/crobinso/src/virt-manager/tests/image-xml/image-format.xml"/>
|
||||
<source file="REPLACEME/tests/image-xml/image-format.xml"/>
|
||||
<target dev="hdc" bus="ide"/>
|
||||
</disk>
|
||||
<input type="mouse" bus="ps2"/>
|
||||
|
|
|
@ -20,15 +20,15 @@
|
|||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<disk type="file" device="disk">
|
||||
<source file="/home/crobinso/src/virt-manager/tests/image-xml/root.raw"/>
|
||||
<source file="REPLACEME/tests/image-xml/root.raw"/>
|
||||
<target dev="hda" bus="ide"/>
|
||||
</disk>
|
||||
<disk type="file" device="disk">
|
||||
<source file="/home/crobinso/src/virt-manager/tests/image-xml/data.raw"/>
|
||||
<source file="REPLACEME/tests/image-xml/data.raw"/>
|
||||
<target dev="hdb" bus="ide"/>
|
||||
</disk>
|
||||
<disk type="file" device="disk">
|
||||
<source file="/home/crobinso/src/virt-manager/tests/image-xml/scratch.raw"/>
|
||||
<source file="REPLACEME/tests/image-xml/scratch.raw"/>
|
||||
<target dev="hdd" bus="ide"/>
|
||||
</disk>
|
||||
<input type="mouse" bus="ps2"/>
|
||||
|
|
|
@ -18,15 +18,15 @@
|
|||
<on_crash>restart</on_crash>
|
||||
<devices>
|
||||
<disk type="file" device="disk">
|
||||
<source file="/home/crobinso/src/virt-manager/tests/image-xml/root.raw"/>
|
||||
<source file="REPLACEME/tests/image-xml/root.raw"/>
|
||||
<target dev="xvda" bus="xen"/>
|
||||
</disk>
|
||||
<disk type="file" device="disk">
|
||||
<source file="/home/crobinso/src/virt-manager/tests/image-xml/data.raw"/>
|
||||
<source file="REPLACEME/tests/image-xml/data.raw"/>
|
||||
<target dev="xvdb" bus="xen"/>
|
||||
</disk>
|
||||
<disk type="file" device="disk">
|
||||
<source file="/home/crobinso/src/virt-manager/tests/image-xml/scratch.raw"/>
|
||||
<source file="REPLACEME/tests/image-xml/scratch.raw"/>
|
||||
<target dev="xvdc" bus="xen"/>
|
||||
</disk>
|
||||
<input type="mouse" bus="xen"/>
|
||||
|
|
|
@ -13,15 +13,15 @@
|
|||
<on_crash>restart</on_crash>
|
||||
<devices>
|
||||
<disk type="file" device="disk">
|
||||
<source file="/home/crobinso/src/virt-manager/tests/image-xml/root.raw"/>
|
||||
<source file="REPLACEME/tests/image-xml/root.raw"/>
|
||||
<target dev="xvda" bus="xen"/>
|
||||
</disk>
|
||||
<disk type="file" device="disk">
|
||||
<source file="/home/crobinso/src/virt-manager/tests/image-xml/data.raw"/>
|
||||
<source file="REPLACEME/tests/image-xml/data.raw"/>
|
||||
<target dev="xvdb" bus="xen"/>
|
||||
</disk>
|
||||
<disk type="file" device="disk">
|
||||
<source file="/home/crobinso/src/virt-manager/tests/image-xml/scratch.raw"/>
|
||||
<source file="REPLACEME/tests/image-xml/scratch.raw"/>
|
||||
<target dev="xvdc" bus="xen"/>
|
||||
</disk>
|
||||
<input type="mouse" bus="xen"/>
|
||||
|
|
|
@ -24,12 +24,12 @@
|
|||
</disk>
|
||||
<disk type='block' device='disk'>
|
||||
<driver name='qemu'/>
|
||||
<source dev='/dev/loop0'/>
|
||||
<source dev='/dev/null'/>
|
||||
<target dev='hdb' bus='ide'/>
|
||||
</disk>
|
||||
<disk type='block' device='cdrom'>
|
||||
<driver name='qemu'/>
|
||||
<source dev='/dev/loop0'/>
|
||||
<source dev='/dev/null'/>
|
||||
<target dev='hdc' bus='ide'/>
|
||||
<readonly/>
|
||||
</disk>
|
||||
|
|
|
@ -25,12 +25,12 @@
|
|||
</disk>
|
||||
<disk type='block' device='disk'>
|
||||
<driver name='qemu'/>
|
||||
<source dev='/dev/loop0'/>
|
||||
<source dev='/dev/null'/>
|
||||
<target dev='hdb' bus='ide'/>
|
||||
</disk>
|
||||
<disk type='block' device='cdrom'>
|
||||
<driver name='qemu'/>
|
||||
<source dev='/dev/loop0'/>
|
||||
<source dev='/dev/null'/>
|
||||
<target dev='hdc' bus='ide'/>
|
||||
<readonly/>
|
||||
</disk>
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
</disk>
|
||||
<disk type="block" device="disk">
|
||||
<driver name="qemu"/>
|
||||
<source dev="/dev/loop0"/>
|
||||
<source dev="/dev/null"/>
|
||||
<target dev="vdb" bus="virtio"/>
|
||||
</disk>
|
||||
<disk type="block" device="cdrom">
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<vcpu>5</vcpu>
|
||||
<devices>
|
||||
<disk type="block" device="disk">
|
||||
<source dev="/dev/loop0"/>
|
||||
<source dev="/dev/null"/>
|
||||
<target dev="xvda" bus="xen"/>
|
||||
</disk>
|
||||
<input type="mouse" bus="xen"/>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<vcpu>5</vcpu>
|
||||
<devices>
|
||||
<disk type="block" device="disk">
|
||||
<source dev="/dev/loop0"/>
|
||||
<source dev="/dev/null"/>
|
||||
<target dev="xvda" bus="xen"/>
|
||||
</disk>
|
||||
<input type="mouse" bus="xen"/>
|
||||
|
|
|
@ -24,19 +24,19 @@
|
|||
<serial>WD-WMAP9A966149</serial>
|
||||
</disk>
|
||||
<disk type="block" device="disk">
|
||||
<source dev="/dev/loop0"/>
|
||||
<source dev="/dev/null"/>
|
||||
<target dev="hdb" bus="ide"/>
|
||||
</disk>
|
||||
<disk type="block" device="cdrom">
|
||||
<driver type="raw"/>
|
||||
<source dev="/dev/loop0"/>
|
||||
<source dev="/dev/null"/>
|
||||
<target dev="hdc" bus="ide"/>
|
||||
<driver name='phy' error_policy='stop'/>
|
||||
<readonly/>
|
||||
</disk>
|
||||
<disk type="block" device="disk">
|
||||
<driver name="qemu" type="qcow2"/>
|
||||
<source dev="/dev/loop0"/>
|
||||
<source dev="/dev/null"/>
|
||||
<target dev="hdd" bus="ide"/>
|
||||
</disk>
|
||||
<disk type="block" device="cdrom">
|
||||
|
@ -54,12 +54,12 @@
|
|||
</disk>
|
||||
<disk type="block" device="floppy">
|
||||
<driver name="phy" cache="none"/>
|
||||
<source dev="/dev/loop0"/>
|
||||
<source dev="/dev/null"/>
|
||||
<target dev="fdb" bus="fdc"/>
|
||||
</disk>
|
||||
<disk type="block" device="disk">
|
||||
<driver name="qemu" type="qcow2" cache="none"/>
|
||||
<source dev="/dev/loop0"/>
|
||||
<source dev="/dev/null"/>
|
||||
<target dev="vda" bus="virtio"/>
|
||||
</disk>
|
||||
<input type="mouse" bus="ps2"/>
|
||||
|
|
|
@ -19,13 +19,13 @@
|
|||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<disk type="file" device="disk">
|
||||
<source file="/dev/loop0"/>
|
||||
<source file="/dev/null"/>
|
||||
<target dev="hda" bus="ide"/>
|
||||
<serial>frob</serial>
|
||||
<driver name="test" type="raw"/>
|
||||
</disk>
|
||||
<disk type="block" device="disk">
|
||||
<source dev="/dev/loop0"/>
|
||||
<source dev="/dev/null"/>
|
||||
<target dev="hdb" bus="ide"/>
|
||||
</disk>
|
||||
<disk type="block" device="floppy">
|
||||
|
@ -33,7 +33,7 @@
|
|||
</disk>
|
||||
<disk type="block" device="disk">
|
||||
<driver name="qemu" type="qcow2"/>
|
||||
<source dev="/dev/loop0"/>
|
||||
<source dev="/dev/null"/>
|
||||
<target dev="hdd" bus="ide"/>
|
||||
</disk>
|
||||
<disk type="block" device="cdrom">
|
||||
|
@ -56,12 +56,12 @@
|
|||
</disk>
|
||||
<disk type="block" device="floppy">
|
||||
<driver name="phy" cache="none"/>
|
||||
<source dev="/dev/loop0"/>
|
||||
<source dev="/dev/null"/>
|
||||
<target dev="fdb" bus="fdc"/>
|
||||
</disk>
|
||||
<disk type="block" device="disk">
|
||||
<driver name="qemu" type="qcow2" cache="none"/>
|
||||
<source dev="/dev/loop0"/>
|
||||
<source dev="/dev/null"/>
|
||||
<target dev="vda" bus="virtio"/>
|
||||
</disk>
|
||||
<input type="mouse" bus="ps2"/>
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<disk type="block" device="floppy">
|
||||
<source dev="/dev/loop0"/>
|
||||
<source dev="/dev/null"/>
|
||||
<target dev="fda" bus="fdc"/>
|
||||
</disk>
|
||||
<filesystem>
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<disk type="block" device="floppy">
|
||||
<source dev="/dev/loop0"/>
|
||||
<source dev="/dev/null"/>
|
||||
<target dev="fda" bus="fdc"/>
|
||||
</disk>
|
||||
<filesystem type="mount" accessmode="passthrough">
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<disk type="block" device="floppy">
|
||||
<source dev="/dev/loop0"/>
|
||||
<source dev="/dev/null"/>
|
||||
<target dev="fda" bus="fdc"/>
|
||||
</disk>
|
||||
<graphics type="vnc" passwd="foobar" port="100" listen="0.0.0.0"/>
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<disk type="block" device="floppy">
|
||||
<source dev="/dev/loop0"/>
|
||||
<source dev="/dev/null"/>
|
||||
<target dev="fda" bus="fdc"/>
|
||||
</disk>
|
||||
<graphics type="vnc" passwd="newpass" port="6000" listen="1.2.3.4" keymap="en-us"/>
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
</disk>
|
||||
<disk type="block" device="disk">
|
||||
<driver name="qemu"/>
|
||||
<source dev="/dev/loop0"/>
|
||||
<source dev="/dev/null"/>
|
||||
<target dev="vdb" bus="virtio"/>
|
||||
</disk>
|
||||
<disk type="block" device="cdrom">
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
</disk>
|
||||
<disk type="block" device="disk">
|
||||
<driver name="qemu"/>
|
||||
<source dev="/dev/loop0"/>
|
||||
<source dev="/dev/null"/>
|
||||
<target dev="vdb" bus="virtio"/>
|
||||
</disk>
|
||||
<disk type="block" device="cdrom">
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
</disk>
|
||||
<disk type='block' device='disk'>
|
||||
<driver name='qemu'/>
|
||||
<source dev='/dev/loop0'/>
|
||||
<source dev='/dev/null'/>
|
||||
<target dev='vdb' bus='virtio'/>
|
||||
</disk>
|
||||
<disk type='block' device='cdrom'>
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
</disk>
|
||||
<disk type="block" device="disk">
|
||||
<driver name="qemu"/>
|
||||
<source dev="/dev/loop0"/>
|
||||
<source dev="/dev/null"/>
|
||||
<target dev="vdb" bus="virtio"/>
|
||||
</disk>
|
||||
<disk type="block" device="cdrom">
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
</disk>
|
||||
<disk type='block' device='disk'>
|
||||
<driver name='qemu'/>
|
||||
<source dev='/dev/loop0'/>
|
||||
<source dev='/dev/null'/>
|
||||
<target dev='vdb' bus='virtio'/>
|
||||
</disk>
|
||||
<disk type='block' device='cdrom'>
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
</disk>
|
||||
<disk type="block" device="disk">
|
||||
<driver name="qemu"/>
|
||||
<source dev="/dev/loop0"/>
|
||||
<source dev="/dev/null"/>
|
||||
<target dev="vdb" bus="virtio"/>
|
||||
</disk>
|
||||
<disk type="block" device="cdrom">
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
</disk>
|
||||
<disk type='block' device='disk'>
|
||||
<driver name='qemu'/>
|
||||
<source dev='/dev/loop0'/>
|
||||
<source dev='/dev/null'/>
|
||||
<target dev='vdb' bus='virtio'/>
|
||||
</disk>
|
||||
<disk type='block' device='cdrom'>
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
</disk>
|
||||
<disk type="block" device="disk">
|
||||
<driver name="qemu"/>
|
||||
<source dev="/dev/loop0"/>
|
||||
<source dev="/dev/null"/>
|
||||
<target dev="vdb" bus="virtio"/>
|
||||
</disk>
|
||||
<disk type="block" device="cdrom">
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<disk type="block" device="floppy">
|
||||
<source dev="/dev/loop0"/>
|
||||
<source dev="/dev/null"/>
|
||||
<target dev="fda" bus="fdc"/>
|
||||
</disk>
|
||||
<sound model="sb16"/>
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<disk type="block" device="floppy">
|
||||
<source dev="/dev/loop0"/>
|
||||
<source dev="/dev/null"/>
|
||||
<target dev="fda" bus="fdc"/>
|
||||
</disk>
|
||||
<sound model="ac97"/>
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
</disk>
|
||||
<disk type='block' device='disk'>
|
||||
<driver name='qemu'/>
|
||||
<source dev='/dev/loop0'/>
|
||||
<source dev='/dev/null'/>
|
||||
<target dev='vdb' bus='virtio'/>
|
||||
</disk>
|
||||
<disk type='block' device='cdrom'>
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
</disk>
|
||||
<disk type="block" device="disk">
|
||||
<driver name="qemu"/>
|
||||
<source dev="/dev/loop0"/>
|
||||
<source dev="/dev/null"/>
|
||||
<target dev="vdb" bus="virtio"/>
|
||||
</disk>
|
||||
<disk type="block" device="cdrom">
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<disk type="block" device="floppy">
|
||||
<source dev="/dev/loop0"/>
|
||||
<source dev="/dev/null"/>
|
||||
<target dev="fda" bus="fdc"/>
|
||||
</disk>
|
||||
<video>
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<disk type="block" device="floppy">
|
||||
<source dev="/dev/loop0"/>
|
||||
<source dev="/dev/null"/>
|
||||
<target dev="fda" bus="fdc"/>
|
||||
</disk>
|
||||
<video>
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<disk type="block" device="floppy">
|
||||
<source dev="/dev/loop0"/>
|
||||
<source dev="/dev/null"/>
|
||||
<target dev="fda" bus="fdc"/>
|
||||
</disk>
|
||||
<watchdog model="ib700" action="none"/>
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<devices>
|
||||
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
||||
<disk type="block" device="floppy">
|
||||
<source dev="/dev/loop0"/>
|
||||
<source dev="/dev/null"/>
|
||||
<target dev="fda" bus="fdc"/>
|
||||
</disk>
|
||||
<watchdog model="i6300esb" action="poweroff"/>
|
||||
|
|
|
@ -271,7 +271,7 @@ class XMLParseTest(unittest.TestCase):
|
|||
disk6.size = 1
|
||||
|
||||
check = self._make_checker(disk1)
|
||||
check("path", "/tmp/test.img", "/dev/loop0")
|
||||
check("path", "/tmp/test.img", "/dev/null")
|
||||
disk1.sync_path_props()
|
||||
check("driver_name", None, "test")
|
||||
check("driver_type", None, "raw")
|
||||
|
@ -279,7 +279,7 @@ class XMLParseTest(unittest.TestCase):
|
|||
|
||||
check = self._make_checker(disk3)
|
||||
check("type", "block", "dir", "file", "block")
|
||||
check("path", "/dev/loop0", None)
|
||||
check("path", "/dev/null", None)
|
||||
disk3.sync_path_props()
|
||||
check("device", "cdrom", "floppy")
|
||||
check("read_only", True, False)
|
||||
|
|
Loading…
Reference in New Issue