mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 17:19:20 +00:00
oeqa/selftest/runqemu: Enable kvm when QEMU_USE_KVM is set
(From OE-Core rev: 564de3681353fe8e203425388e8be9703a89d2da) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
274b941b8b
commit
c75b8f33bf
@@ -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