diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2018-11-19 14:06:55 +0100 |
---|---|---|
committer | Patrick Vacek <patrickvacek@gmail.com> | 2019-02-20 09:36:17 +0100 |
commit | ecb5a28db62e5fc40847d86b227a59b40783bd6c (patch) | |
tree | 53b5899eec2010d076feac9f5d9b7155cca4d1a9 | |
parent | 2209a118b98097b08c9da1caefef7fd697e23a94 (diff) | |
download | meta-updater-ecb5a28db62e5fc40847d86b227a59b40783bd6c.tar.gz |
selftest: introduce QEMU_USE_KVM
The qemucommand.py script uses kvm-ok to determine whether KVM
is available. However, kvm-ok is very Ubuntu specific and not
readily available on Fedora.
Use QEMU_USE_KVM variable which is also used in OpenEmbedded
selftests. The variable must contain True to enable KVM for
machines containing x86 in its name, or contain a list of
machines. For meta-updater this makes sure KVM is used for all
tests:
QEMU_USE_KVM = "intel-corei7-64 qemux86-64"
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
-rw-r--r-- | lib/oeqa/selftest/cases/updater.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/oeqa/selftest/cases/updater.py b/lib/oeqa/selftest/cases/updater.py index fd37e85..4813b2e 100644 --- a/lib/oeqa/selftest/cases/updater.py +++ b/lib/oeqa/selftest/cases/updater.py | |||
@@ -655,7 +655,13 @@ def qemu_launch(efi=False, machine=None, imagename=None): | |||
655 | args.dir = 'tmp/deploy/images' | 655 | args.dir = 'tmp/deploy/images' |
656 | args.efi = efi | 656 | args.efi = efi |
657 | args.machine = machine | 657 | args.machine = machine |
658 | args.kvm = None # Autodetect | 658 | qemu_use_kvm = get_bb_var("QEMU_USE_KVM") |
659 | if qemu_use_kvm and \ | ||
660 | (qemu_use_kvm == 'True' and 'x86' in machine or \ | ||
661 | get_bb_var('MACHINE') in qemu_use_kvm.split()): | ||
662 | args.kvm = True | ||
663 | else: | ||
664 | args.kvm = None # Autodetect | ||
659 | args.no_gui = True | 665 | args.no_gui = True |
660 | args.gdb = False | 666 | args.gdb = False |
661 | args.pcap = None | 667 | args.pcap = None |