[virt-tools-list] [virt-manager PATCH 2/2] tests: introduce a test for removing unix channel path for virt-clone
Pavel Hrdina
phrdina at redhat.com
Tue Nov 3 10:57:02 UTC 2015
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 at redhat.com>
---
tests/cli-test-xml/compare/virt-clone-clone-auto1.xml | 5 +++++
tests/testdriver.xml | 4 ++++
2 files changed, 9 insertions(+)
diff --git a/tests/cli-test-xml/compare/virt-clone-clone-auto1.xml b/tests/cli-test-xml/compare/virt-clone-clone-auto1.xml
index 3979a25..735d87b 100644
--- a/tests/cli-test-xml/compare/virt-clone-clone-auto1.xml
+++ b/tests/cli-test-xml/compare/virt-clone-clone-auto1.xml
@@ -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>
diff --git a/tests/testdriver.xml b/tests/testdriver.xml
index 26ad085..4468993 100644
--- a/tests/testdriver.xml
+++ b/tests/testdriver.xml
@@ -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>
--
2.6.2
More information about the virt-tools-list
mailing list