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-25 22:27:45 +0000 |
| commit | 0bda55062765da0797c871d6f9bc02b527837299 (patch) | |
| tree | e2e062ac7fd7d0a9b56354598f5c3ea48fd85b03 /meta/lib | |
| parent | 3c7d4f0526340f47f4ebc078363b33d2bae11068 (diff) | |
| download | poky-0bda55062765da0797c871d6f9bc02b527837299.tar.gz | |
oeqa/selftest/runqemu: Enable kvm when QEMU_USE_KVM is set
(From OE-Core rev: 564de3681353fe8e203425388e8be9703a89d2da)
(From OE-Core rev: 1207949c986cc9f6b3940a99e87bc4d8cfb86d5b)
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/lib')
| -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 a758aafbdd..8f4084d4b4 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 |
| @@ -24,6 +25,10 @@ class RunqemuTests(OESelftestTestCase): | |||
| 24 | self.fstypes = "ext4 iso hddimg wic.vmdk wic.qcow2 wic.vdi" | 25 | self.fstypes = "ext4 iso hddimg wic.vmdk wic.qcow2 wic.vdi" |
| 25 | self.cmd_common = "runqemu nographic" | 26 | self.cmd_common = "runqemu nographic" |
| 26 | 27 | ||
| 28 | kvm = oe.types.qemu_use_kvm(get_bb_var('QEMU_USE_KVM'), 'x86_64') | ||
| 29 | if kvm: | ||
| 30 | self.cmd_common += " kvm" | ||
| 31 | |||
| 27 | self.write_config( | 32 | self.write_config( |
| 28 | """ | 33 | """ |
| 29 | MACHINE = "%s" | 34 | MACHINE = "%s" |
