mirror of
https://git.yoctoproject.org/poky
synced 2026-04-18 21:32:12 +02:00
oeqa/selftest/runqemu: Enable kvm when QEMU_USE_KVM is set
(From OE-Core rev: 564de3681353fe8e203425388e8be9703a89d2da) (From OE-Core rev: ffea871575d0e80f73daf6b36c90798ce5e055e6) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
5af780686d
commit
22243e44c1
@@ -5,6 +5,7 @@
|
||||
import re
|
||||
import tempfile
|
||||
import time
|
||||
import oe.types
|
||||
from oeqa.selftest.case import OESelftestTestCase
|
||||
from oeqa.utils.commands import bitbake, runqemu, get_bb_var, runCmd
|
||||
from oeqa.core.decorator.oeid import OETestID
|
||||
@@ -22,6 +23,10 @@ class RunqemuTests(OESelftestTestCase):
|
||||
self.fstypes = "ext4 iso hddimg wic.vmdk wic.qcow2 wic.vdi"
|
||||
self.cmd_common = "runqemu nographic"
|
||||
|
||||
kvm = oe.types.qemu_use_kvm(get_bb_var('QEMU_USE_KVM'), 'x86_64')
|
||||
if kvm:
|
||||
self.cmd_common += " kvm"
|
||||
|
||||
self.write_config(
|
||||
"""
|
||||
MACHINE = "%s"
|
||||
|
||||
Reference in New Issue
Block a user