[Pkg-libvirt-commits] [libguestfs] 121/384: python: Fix regression test so it works when KVM is not available.
Hilko Bengen
bengen at moszumanska.debian.org
Sun Mar 29 16:55:58 UTC 2015
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to branch experimental
in repository libguestfs.
commit 8e0fc5fb469cdb67eb82e61036749f7d114e2c6f
Author: Richard W.M. Jones <rjones at redhat.com>
Date: Tue Dec 16 13:16:07 2014 +0000
python: Fix regression test so it works when KVM is not available.
The test assumed (for no particular reason) that it could always run a
KVM guest. When run on a machine without KVM, or in a VM without
nested KVM, you get this error:
libvirt: Domain Config error : internal error: no supported architecture for os type 'hvm'
Traceback (most recent call last):
File "./t/820-rhbz912499.py", line 77, in <module>
dom = conn.createXML (xml, libvirt.VIR_DOMAIN_START_AUTODESTROY)
File "/usr/lib64/python2.7/site-packages/libvirt.py", line 3523, in createXML
if ret is None:raise libvirtError('virDomainCreateXML() failed', conn=self)
libvirt.libvirtError: internal error: no supported architecture for os type 'hvm'
FAIL: ./t/820-rhbz912499.py
Use a qemu guest instead, which should have a better chance of working
on all hosts.
---
python/t/820-rhbz912499.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python/t/820-rhbz912499.py b/python/t/820-rhbz912499.py
index 1516227..33b63e8 100644
--- a/python/t/820-rhbz912499.py
+++ b/python/t/820-rhbz912499.py
@@ -56,7 +56,7 @@ domname = ''.join (random.choice (string.ascii_uppercase) for _ in range (8))
domname = "tmp-" + domname
xml = """
-<domain type='kvm'>
+<domain type='qemu'>
<name>%s</name>
<memory>1048576</memory>
<vcpu>1</vcpu>
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git
More information about the Pkg-libvirt-commits
mailing list