summaryrefslogtreecommitdiffstats
path: root/scripts/qemucommand.py
Commit message (Collapse)AuthorAgeFilesLines
* qemucommand.py: redirect qemu monitor to null chardevfix/qemucommandEugene Smirnov2019-08-121-6/+10
| | | | | | | | By default qemu monitor gets attached to stdio, and that interferes with the test output. We also don't need vga options in nographic mode. Signed-off-by: Eugene Smirnov <evgenii.smirnov@here.com>
* More helpful error message when running qemuLaurent Bonnans2019-08-011-1/+3
| | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Use 128M by default for qemu in oe-selftestsLaurent Bonnans2019-07-161-3/+6
| | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* OTA-2541: Static IP address on Primary's and Secondary's internal NICMike Sul2019-05-271-2/+2
| | | | Signed-off-by: Mike Sul <ext-mykhaylo.sul@here.com>
* Solve qemu long rng initialization problemLaurent Bonnans2019-03-211-0/+2
| | | | | | Expose a fake hardware rng on the guest, linked to the host's /dev/urandom. Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* image_types_ota: use IMGDEPLOYDIR for ota-ext4 imagesStefan Agner2018-10-181-1/+1
| | | | | | | | | | | Do not write directly to the IMAGE_DEPLOY_DIR but to the new deploy directory IMGDEPLOYDIR. Also change the image ending to match the image type name (from otaimg to ota-ext4). This allows to use the automatic symlinking and output artefact management too. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
* Specify cpu type -host- for KVM modefix/cpu-typeEugene Smirnov2018-08-171-1/+1
|
* Restrict secondary network to localhostPhil Wise2018-03-271-1/+1
|
* Add a --secondary-network option to run-qemu-otaPhil Wise2018-03-191-0/+6
| | | | | This sets up a simulated 'in vehicle' network. Add support for a Primary node with a DHCP server and a secondary node with a DHCP client.
* More general exception handler for `kvm-ok`Laurent Bonnans2018-01-191-1/+1
| | | | If the program is not in PATH, `FileNotFoundError` is raised
* Fix some basic oe-selftest errors.Patrick Vacek2018-01-181-1/+1
| | | | | Grub, HSM, and qemu hostname tests still fail for reasons I haven't figured out yet.
* Add a hint when machine autodetection failsPhil Wise2017-12-011-6/+5
| | | | Also fix a pylint warning about indentation
* Autodetect KVMPhil Wise2017-11-161-1/+10
| | | | | | | | | | | 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.
* Rough draft of a run-qemu-ota test.Patrick Vacek2017-11-131-2/+2
| | | | | | | | | | Not very useful yet. Could be made into a function for the purpose of running arbitrary commands via SSH, for example. However, I had plenty of trouble even getting this far. Note that I created a softlink to qemucommand to get around the Python path issues in oe-selftest. I'm not sure if there's a better way to handle that, since manipulating the path is seemingly impossible.
* Refactor QemuCommand class into its own file/module.Patrick Vacek2017-11-131-0/+118