diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2019-01-04 15:15:45 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-02-06 16:38:31 +0000 |
commit | 22243e44c111893711848b4f4d64a3e2e985ab53 (patch) | |
tree | 7f71a6da26165c003a8decab0638cef0d1cf2733 /meta | |
parent | 5af780686d7e95d60e22bf12d0899499912ef79f (diff) | |
download | poky-22243e44c111893711848b4f4d64a3e2e985ab53.tar.gz |
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>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/runqemu.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/cases/runqemu.py b/meta/lib/oeqa/selftest/cases/runqemu.py index 4e35bb97e3..f69d4706a5 100644 --- a/meta/lib/oeqa/selftest/cases/runqemu.py +++ b/meta/lib/oeqa/selftest/cases/runqemu.py | |||
@@ -5,6 +5,7 @@ | |||
5 | import re | 5 | import re |
6 | import tempfile | 6 | import tempfile |
7 | import time | 7 | import time |
8 | import oe.types | ||
8 | from oeqa.selftest.case import OESelftestTestCase | 9 | from oeqa.selftest.case import OESelftestTestCase |
9 | from oeqa.utils.commands import bitbake, runqemu, get_bb_var, runCmd | 10 | from oeqa.utils.commands import bitbake, runqemu, get_bb_var, runCmd |
10 | from oeqa.core.decorator.oeid import OETestID | 11 | from oeqa.core.decorator.oeid import OETestID |
@@ -22,6 +23,10 @@ class RunqemuTests(OESelftestTestCase): | |||
22 | self.fstypes = "ext4 iso hddimg wic.vmdk wic.qcow2 wic.vdi" | 23 | self.fstypes = "ext4 iso hddimg wic.vmdk wic.qcow2 wic.vdi" |
23 | self.cmd_common = "runqemu nographic" | 24 | self.cmd_common = "runqemu nographic" |
24 | 25 | ||
26 | kvm = oe.types.qemu_use_kvm(get_bb_var('QEMU_USE_KVM'), 'x86_64') | ||
27 | if kvm: | ||
28 | self.cmd_common += " kvm" | ||
29 | |||
25 | self.write_config( | 30 | self.write_config( |
26 | """ | 31 | """ |
27 | MACHINE = "%s" | 32 | MACHINE = "%s" |