summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2018-11-19 14:06:55 +0100
committerPatrick Vacek <patrickvacek@gmail.com>2019-02-14 13:33:12 +0100
commitee2e6a54d33883cc829578f558acfd20967594a5 (patch)
treec92919373214a6110d9569f12a30baa0b49a4d27
parent9061f3cca37efbc3dc1cc492bbeb1d0eaae9f994 (diff)
downloadmeta-updater-ee2e6a54d33883cc829578f558acfd20967594a5.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.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/oeqa/selftest/cases/updater.py b/lib/oeqa/selftest/cases/updater.py
index b857ab6..f269c1e 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