summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPhil Wise <phil@advancedtelematic.com>2017-11-16 11:01:25 +0100
committerPhil Wise <phil@advancedtelematic.com>2017-11-16 11:07:49 +0100
commit24e5a6d45886365cecce74c2c9aa1cfd8c0da69a (patch)
tree2c296be453e262a347d4914d2359e7e298c1f3e2 /lib
parent0b1fd4b3c456a64e40a7ff1125f005c0b72eafd8 (diff)
downloadmeta-updater-24e5a6d45886365cecce74c2c9aa1cfd8c0da69a.tar.gz
Autodetect KVM
Autodetect KVM by using the 'kvm-ok' command line tool. This has two benefits: Firstly, it improves the UX of run-qemu-ota when working on machines without KVM (e.g. AWS). Previously, people had to use the --no-kvm option in these cases. Secondary, it makes oe-selftest usable on machines without KVM. Our tests call run-qemu-ota, and we want to able to run them on machines without KVM.
Diffstat (limited to 'lib')
-rw-r--r--lib/oeqa/selftest/updater.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/oeqa/selftest/updater.py b/lib/oeqa/selftest/updater.py
index 6339e6e..eb09302 100644
--- a/lib/oeqa/selftest/updater.py
+++ b/lib/oeqa/selftest/updater.py
@@ -97,12 +97,12 @@ class GeneralTests(oeSelfTest):
97 args = type('', (), {})() 97 args = type('', (), {})()
98 args.imagename = 'core-image-minimal' 98 args.imagename = 'core-image-minimal'
99 args.mac = None 99 args.mac = None
100 # Could use DEPLOY_DIR_IMAGE her but it's already in the machine 100 # Could use DEPLOY_DIR_IMAGE here but it's already in the machine
101 # subdirectory. 101 # subdirectory.
102 args.dir = 'tmp/deploy/images' 102 args.dir = 'tmp/deploy/images'
103 args.efi = False 103 args.efi = False
104 args.machine = None 104 args.machine = None
105 args.no_kvm = False 105 args.kvm = None # Autodetect
106 args.no_gui = True 106 args.no_gui = True
107 args.gdb = False 107 args.gdb = False
108 args.pcap = None 108 args.pcap = None