]> xenbits.xensource.com Git - libvirt.git/commitdiff
Add USB addresses to qemuhotplug test cases
authorJán Tomko <jtomko@redhat.com>
Thu, 23 Jun 2016 05:28:34 +0000 (07:28 +0200)
committerJán Tomko <jtomko@redhat.com>
Fri, 1 Jul 2016 10:25:18 +0000 (12:25 +0200)
This test assumes the XML will be the same after formatting.
Add USB addresses to it to keep it working when we autoassign them.

tests/qemuhotplugtestdata/qemuhotplug-console-compat-2-live+console-virtio.xml
tests/qemuxml2argvdata/qemuxml2argv-console-compat-2-live.xml
tests/qemuxml2argvdata/qemuxml2argv-console-compat-2.xml

index 3495ee67b4ac78c93f17511ebdb5c08421b630d9..7ca36d57b7a3cc4435f6505621446758fb9dc17e 100644 (file)
     </channel>
     <input type='tablet' bus='usb'>
       <alias name='input0'/>
+      <address type='usb' bus='0' port='1'/>
     </input>
     <input type='mouse' bus='ps2'>
       <alias name='input1'/>
index b36af270c3ff3c88a84ef6937c70f6e0664a38fa..f300940a3309525d2cb9ec614ed4400f90db3992 100644 (file)
@@ -95,6 +95,7 @@
     </channel>
     <input type='tablet' bus='usb'>
       <alias name='input0'/>
+      <address type='usb' bus='0' port='1'/>
     </input>
     <input type='mouse' bus='ps2'>
       <alias name='input1'/>
index 2ae104e1196851278108f461c60d06a8a862d291..7b35709fa95e58c4c44851f7f0ae4a203a1b08f9 100644 (file)
@@ -78,7 +78,9 @@
       <target type='virtio' name='org.qemu.guest_agent.0'/>
       <address type='virtio-serial' controller='0' bus='0' port='1'/>
     </channel>
-    <input type='tablet' bus='usb'/>
+    <input type='tablet' bus='usb'>
+      <address type='usb' bus='0' port='1'/>
+    </input>
     <input type='mouse' bus='ps2'/>
     <input type='keyboard' bus='ps2'/>
     <graphics type='vnc' port='-1' autoport='yes' listen='0.0.0.0'>