diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2018-11-19 14:06:55 +0100 |
---|---|---|
committer | Stefan Agner <stefan.agner@toradex.com> | 2018-11-21 12:53:32 +0100 |
commit | 3fe92dd6cdbcb23439e8dc1988fff009b3d066b1 (patch) | |
tree | ceaace02543ae7bed5201a70449403938e04cad7 /lib/oeqa/selftest | |
parent | 616cbf7d42dc7a6d9b09803fd7e6080299264f74 (diff) | |
download | meta-updater-3fe92dd6cdbcb23439e8dc1988fff009b3d066b1.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>
Diffstat (limited to 'lib/oeqa/selftest')
-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 eb43994..499ddb7 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 |