]> code.ossystems Code Review - openembedded-core.git/commit
oeqa: Fix for QEMU_USE_KVM
authorRobert Yang <liezhi.yang@windriver.com>
Fri, 4 Jan 2019 07:15:43 +0000 (15:15 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 7 Jan 2019 17:23:07 +0000 (17:23 +0000)
commit7c1a8a624cad8d967635c6cb5f99cf655bde3d44
tree677f6ed83f4d8e88a12feeaff8c177532dc70fcf
parent6186f98ad489a0508c43ea35bd1514c65f33ccf5
oeqa: Fix for QEMU_USE_KVM

Fixed:
MACHINE = "qemux86"
QEMU_USE_KVM = "qemux86"
IMAGE_CLASSES += "testimage"

$ oe-selftest -r runqemu.RunqemuTests.test_boot_rootfs

[snip]
  File "/buildarea1/lyang1/poky/meta/lib/oe/types.py", line 122, in boolean
    raise ValueError("Invalid boolean value '%s'" % value)
ValueError: Invalid boolean value 'qemux86'

Now QEMU_USE_KVM can only be boolean, can not contain MACHINE any more, kvm
will be enabled if target_arch == build_arch or both of them are x86 archs.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/testimage.bbclass
meta/lib/oe/types.py
meta/lib/oeqa/targetcontrol.py