diff options
-rw-r--r-- | meta/classes/testimage.bbclass | 2 | ||||
-rw-r--r-- | meta/lib/oeqa/targetcontrol.py | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass index 45bb2bda3b..7260ad4517 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass | |||
@@ -215,7 +215,7 @@ def testimage_main(d): | |||
215 | # Get use_kvm | 215 | # Get use_kvm |
216 | qemu_use_kvm = d.getVar("QEMU_USE_KVM") | 216 | qemu_use_kvm = d.getVar("QEMU_USE_KVM") |
217 | if qemu_use_kvm and \ | 217 | if qemu_use_kvm and \ |
218 | (qemu_use_kvm == 'True' and 'x86' in machine or \ | 218 | (oe.types.boolean(qemu_use_kvm) and 'x86' in machine or \ |
219 | d.getVar('MACHINE') in qemu_use_kvm.split()): | 219 | d.getVar('MACHINE') in qemu_use_kvm.split()): |
220 | kvm = True | 220 | kvm = True |
221 | else: | 221 | else: |
diff --git a/meta/lib/oeqa/targetcontrol.py b/meta/lib/oeqa/targetcontrol.py index f63936c3ec..59a9c35a09 100644 --- a/meta/lib/oeqa/targetcontrol.py +++ b/meta/lib/oeqa/targetcontrol.py | |||
@@ -91,6 +91,8 @@ class QemuTarget(BaseTarget): | |||
91 | 91 | ||
92 | def __init__(self, d, logger, image_fstype=None): | 92 | def __init__(self, d, logger, image_fstype=None): |
93 | 93 | ||
94 | import oe.types | ||
95 | |||
94 | super(QemuTarget, self).__init__(d, logger) | 96 | super(QemuTarget, self).__init__(d, logger) |
95 | 97 | ||
96 | self.rootfs = '' | 98 | self.rootfs = '' |
@@ -107,7 +109,7 @@ class QemuTarget(BaseTarget): | |||
107 | dump_dir = d.getVar("TESTIMAGE_DUMP_DIR") | 109 | dump_dir = d.getVar("TESTIMAGE_DUMP_DIR") |
108 | qemu_use_kvm = d.getVar("QEMU_USE_KVM") | 110 | qemu_use_kvm = d.getVar("QEMU_USE_KVM") |
109 | if qemu_use_kvm and \ | 111 | if qemu_use_kvm and \ |
110 | (qemu_use_kvm == "True" and "x86" in d.getVar("MACHINE") or \ | 112 | (oe.types.boolean(qemu_use_kvm) and "x86" in d.getVar("MACHINE") or \ |
111 | d.getVar("MACHINE") in qemu_use_kvm.split()): | 113 | d.getVar("MACHINE") in qemu_use_kvm.split()): |
112 | use_kvm = True | 114 | use_kvm = True |
113 | else: | 115 | else: |