]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Use qemu-kvm in the qemu task for rpm based systems.
authorAndrew Schoen <aschoen@redhat.com>
Mon, 22 Dec 2014 16:51:25 +0000 (10:51 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Wed, 21 Jan 2015 20:13:22 +0000 (14:13 -0600)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
tasks/qemu.py

index eec0324a0ebc1b83096ac880e2200b3a6c41c918..4dd5fe0df73758c5d5fdf3200983a47349a4a353 100644 (file)
@@ -169,14 +169,20 @@ def run_qemu(ctx, config):
                 ]
             )
 
-        base_file = '{tdir}/qemu/base.{client}.qcow2'.format(tdir=testdir, client=client)
+        base_file = '{tdir}/qemu/base.{client}.qcow2'.format(
+            tdir=testdir,
+            client=client
+        )
+        qemu_cmd = 'qemu-system-x86_64'
+        if remote.os.package_type == "rpm":
+            qemu_cmd = "/usr/libexec/qemu-kvm"
         args=[
             'adjust-ulimits',
             'ceph-coverage',
             '{tdir}/archive/coverage'.format(tdir=testdir),
             'daemon-helper',
             'term',
-            'qemu-system-x86_64', '-enable-kvm', '-nographic',
+            qemu_cmd, '-enable-kvm', '-nographic',
             '-m', str(client_config.get('memory', DEFAULT_MEM)),
             # base OS device
             '-drive',