summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/targetcontrol.py
diff options
context:
space:
mode:
authorNathan Rossi <nathan@nathanrossi.com>2019-11-25 06:56:56 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-11-27 13:25:18 +0000
commit6cde67d0a84f8339443ae43874a8e44a725926b3 (patch)
tree8356c6a720949cf271d86b736c89152559101c1a /meta/lib/oeqa/targetcontrol.py
parent73f6b1f68ddfc616c46277b1d5a623001ca3b0e5 (diff)
downloadpoky-6cde67d0a84f8339443ae43874a8e44a725926b3.tar.gz
oeqa/utils/qemurunner.py: Handle QEMU machines with a single serial
Not all QEMU machines are capable of having more than one serial port, this is due to the machine emulating a physical device/board. Rework QemuRunner to handle machines that only have 1 serial port, where the serial port shares output of the kernel log buffer and a login console. In this case the output is mixed but enables the machine to boot and have QemuRunner detect the login prompt. QemuTarget uses SERIAL_CONSOLES to determine the number of available serial ports. (From OE-Core rev: 333897c4a00b41681ffe34312a08cae09274327e) Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/targetcontrol.py')
-rw-r--r--meta/lib/oeqa/targetcontrol.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/lib/oeqa/targetcontrol.py b/meta/lib/oeqa/targetcontrol.py
index 1445e3ecfb..0b2915d5cc 100644
--- a/meta/lib/oeqa/targetcontrol.py
+++ b/meta/lib/oeqa/targetcontrol.py
@@ -143,7 +143,8 @@ class QemuTarget(BaseTarget):
143 use_kvm = use_kvm, 143 use_kvm = use_kvm,
144 dump_dir = dump_dir, 144 dump_dir = dump_dir,
145 dump_host_cmds = d.getVar("testimage_dump_host"), 145 dump_host_cmds = d.getVar("testimage_dump_host"),
146 logger = logger) 146 logger = logger,
147 serial_ports = len(d.getVar("SERIAL_CONSOLES").split()))
147 148
148 self.target_dumper = TargetDumper(dump_target_cmds, dump_dir, self.runner) 149 self.target_dumper = TargetDumper(dump_target_cmds, dump_dir, self.runner)
149 150