tests: introduce a test for removing unix channel path for virt-clone

Commit 3a33f341 fixed an issue, where we should remove source path for
unix channel in order to let libvirt generate new one.  Add a test case
to cover this change.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
Pavel Hrdina 2015-11-03 11:48:53 +01:00
parent 627abed9c1
commit 8e9d50c75e
2 changed files with 9 additions and 0 deletions

View File

@ -63,6 +63,7 @@
<controller type="scsi" index="0"/>
<controller type="fdc" index="0"/>
<controller type="ide" index="0"/>
<controller type="virtio-serial" index="0"/>
<interface type="network">
<mac address="00:11:22:33:44:55"/>
<source network="default"/>
@ -75,5 +76,9 @@
<source path="/tmp/foo.log"/>
<target port="0"/>
</parallel>
<channel type="unix">
<source mode="bind"/>
<target type="virtio" name="org.qemu.guest_agent.0"/>
</channel>
</devices>
</domain>

View File

@ -820,6 +820,10 @@ test-many-devices, like an alternate RNG.
<parallel type='file'>
<source path='/tmp/foo.log'/>
</parallel>
<channel type='unix'>
<source mode='bind' path='/var/lib/libvirt/qemu/channel/target/test-for-clone/org.qemu.guest_agent.0'/>
<target type='virtio' name='org.qemu.guest_agent.0'/>
</channel>
</devices>
</domain>