diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2019-01-23 17:17:40 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-01-26 13:39:37 +0000 |
commit | f7718fa8ae8ead3c6fdfc1da58a2f9b9c719699f (patch) | |
tree | 5cd3076a4ce5a60ce222de4d2f6fbf787e0fed71 /meta/lib/oeqa | |
parent | 7ea988887c577aa6c62bdada8db7218d852d9edd (diff) | |
download | poky-f7718fa8ae8ead3c6fdfc1da58a2f9b9c719699f.tar.gz |
testimage.bbclass: add support for passing runqemu params
This is particularly useful when setting up GL tests.
(From OE-Core rev: 167a46775059b782c6f82ce8c5a47b27262e95d4)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r-- | meta/lib/oeqa/core/target/qemu.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/core/target/qemu.py b/meta/lib/oeqa/core/target/qemu.py index f47fd7468e..7a161a3231 100644 --- a/meta/lib/oeqa/core/target/qemu.py +++ b/meta/lib/oeqa/core/target/qemu.py | |||
@@ -33,11 +33,11 @@ class OEQemuTarget(OESSHTarget): | |||
33 | use_kvm=kvm, use_slirp=slirp, dump_dir=dump_dir, | 33 | use_kvm=kvm, use_slirp=slirp, dump_dir=dump_dir, |
34 | dump_host_cmds=dump_host_cmds, logger=logger) | 34 | dump_host_cmds=dump_host_cmds, logger=logger) |
35 | 35 | ||
36 | def start(self, params=None, extra_bootparams=None): | 36 | def start(self, params=None, extra_bootparams=None, runqemuparams=''): |
37 | if self.use_slirp and not self.server_ip: | 37 | if self.use_slirp and not self.server_ip: |
38 | self.logger.error("Could not start qemu with slirp without server ip - provide 'TEST_SERVER_IP'") | 38 | self.logger.error("Could not start qemu with slirp without server ip - provide 'TEST_SERVER_IP'") |
39 | raise RuntimeError("FAILED to start qemu - check the task log and the boot log") | 39 | raise RuntimeError("FAILED to start qemu - check the task log and the boot log") |
40 | if self.runner.start(params, extra_bootparams=extra_bootparams): | 40 | if self.runner.start(params, extra_bootparams=extra_bootparams, runqemuparams=runqemuparams): |
41 | self.ip = self.runner.ip | 41 | self.ip = self.runner.ip |
42 | if self.use_slirp: | 42 | if self.use_slirp: |
43 | target_ip_port = self.runner.ip.split(':') | 43 | target_ip_port = self.runner.ip.split(':') |