libvirt/tests/qemucaps2xmloutdata
Andrea Bolognani b37b41f868 qemu: Don't duplicate binary name in capabilities
virCapabilitiesAddGuestDomain() takes an optional binary
name: this is intended for cases where a certain domain
type can't use the default one registered for the guest
architecture, but has to use a special binary instead.

The current code, however, will pass 'binary' again when
'kvmbin' is not defined, which is unnecessary as 'binary'
has been registered as default earlier, and will result
in capabilities output such as

  <emulator>/usr/bin/qemu-system-x86_64</emulator>
  <domain type='qemu'/>
  <domain type='kvm'>
    <emulator>/usr/bin/qemu-system-x86_64</emulator>
  </domain>

with the second <emulator> element providing no additional
information.

Change it so that, when 'kvmbin' is not defined, NULL is
passed and so the default emulator will be used instead.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
2018-09-21 15:53:42 +02:00
..
caps_1.5.3.x86_64.xml qemu: Don't duplicate binary name in capabilities 2018-09-21 15:53:42 +02:00
caps_1.6.0.x86_64.xml qemu: Don't duplicate binary name in capabilities 2018-09-21 15:53:42 +02:00
caps_1.7.0.x86_64.xml qemu: Don't duplicate binary name in capabilities 2018-09-21 15:53:42 +02:00
caps_2.1.1.x86_64.xml qemu: Don't duplicate binary name in capabilities 2018-09-21 15:53:42 +02:00
caps_2.4.0.x86_64.xml qemu: Don't duplicate binary name in capabilities 2018-09-21 15:53:42 +02:00
caps_2.5.0.x86_64.xml qemu: Don't duplicate binary name in capabilities 2018-09-21 15:53:42 +02:00
caps_2.6.0.aarch64.xml qemu: Don't duplicate binary name in capabilities 2018-09-21 15:53:42 +02:00
caps_2.6.0.ppc64.xml qemu: Don't duplicate binary name in capabilities 2018-09-21 15:53:42 +02:00
caps_2.6.0.x86_64.xml qemu: Don't duplicate binary name in capabilities 2018-09-21 15:53:42 +02:00
caps_2.7.0.s390x.xml qemu: Don't duplicate binary name in capabilities 2018-09-21 15:53:42 +02:00
caps_2.7.0.x86_64.xml qemu: Don't duplicate binary name in capabilities 2018-09-21 15:53:42 +02:00
caps_2.8.0.s390x.xml qemu: Don't duplicate binary name in capabilities 2018-09-21 15:53:42 +02:00
caps_2.8.0.x86_64.xml qemu: Don't duplicate binary name in capabilities 2018-09-21 15:53:42 +02:00
caps_2.9.0.ppc64.xml qemu: Don't duplicate binary name in capabilities 2018-09-21 15:53:42 +02:00
caps_2.9.0.s390x.xml qemu: Don't duplicate binary name in capabilities 2018-09-21 15:53:42 +02:00
caps_2.9.0.x86_64.xml qemu: Don't duplicate binary name in capabilities 2018-09-21 15:53:42 +02:00
caps_2.10.0.aarch64.xml qemu: Don't duplicate binary name in capabilities 2018-09-21 15:53:42 +02:00
caps_2.10.0.ppc64.xml qemu: Don't duplicate binary name in capabilities 2018-09-21 15:53:42 +02:00
caps_2.10.0.s390x.xml qemu: Don't duplicate binary name in capabilities 2018-09-21 15:53:42 +02:00
caps_2.10.0.x86_64.xml qemu: Don't duplicate binary name in capabilities 2018-09-21 15:53:42 +02:00
caps_2.11.0.s390x.xml qemu: Don't duplicate binary name in capabilities 2018-09-21 15:53:42 +02:00
caps_2.11.0.x86_64.xml qemu: Don't duplicate binary name in capabilities 2018-09-21 15:53:42 +02:00
caps_2.12.0.aarch64.xml qemu: Don't duplicate binary name in capabilities 2018-09-21 15:53:42 +02:00
caps_2.12.0.ppc64.xml qemu: Don't duplicate binary name in capabilities 2018-09-21 15:53:42 +02:00
caps_2.12.0.s390x.xml qemu: Don't duplicate binary name in capabilities 2018-09-21 15:53:42 +02:00
caps_2.12.0.x86_64.xml qemu: Don't duplicate binary name in capabilities 2018-09-21 15:53:42 +02:00
caps_3.0.0.ppc64.xml qemu: Don't duplicate binary name in capabilities 2018-09-21 15:53:42 +02:00
caps_3.0.0.riscv32.xml tests: Add more tests to qemucaps2xml 2018-09-17 14:52:31 +02:00
caps_3.0.0.riscv64.xml tests: Add more tests to qemucaps2xml 2018-09-17 14:52:31 +02:00
caps_3.0.0.x86_64.xml qemu: Don't duplicate binary name in capabilities 2018-09-21 15:53:42 +02:00