On 05/31/2011 08:59 AM, Michal Privoznik wrote:
---
diff to v1:
-move from tests/domainschemadata/ to tests/qemuxml2argvdata/
-add .args
+++ b/tests/qemuxml2argvdata/qemuxml2argv-graphics-spice-timeout.args
@@ -0,0 +1,14 @@
+LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test QEMU_AUDIO_DRV=spice \
+/usr/bin/qemu-kvm
+++ b/tests/qemuxml2argvdata/qemuxml2argv-graphics-spice-timeout.xml
@@ -0,0 +1,86 @@
+<domain type='qemu'>
+ <devices>
+ <emulator>/usr/bin/qemu-kvm</emulator>
Phooey - this test is now failing on a RHEL 6.1 machine:
54) QEMU XML-2-ARGV graphics-spice-timeout
... libvir: QEMU error : Cannot find QEMU binary /usr/bin/qemu-kvm: No
such file or directory
FAILED
This is the first test in qemuxml2argvdata that insists on
/usr/bin/qemu-kvm instead of /usr/bin/qemu.
I was about to push the "obvious" fix of s/qemu-kvm/qemu/, but that just
papers over the real bug, which is that our testsuite depends on what is
installed on the test machine. We need to figure out the root cause and
make the test work even when the <emulator> tag requested by the tag
does not exist on the machine running the test.
--
Eric Blake eblake(a)redhat.com +1-801-349-2682
Libvirt virtualization library
http://libvirt.org