]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/utils/qemurunner: Set both the threadport&serverport with tcpserial parameter
authorKevin Hao <kexin.hao@windriver.com>
Thu, 6 Jun 2019 07:11:47 +0000 (15:11 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 7 Jun 2019 08:10:33 +0000 (09:10 +0100)
commit9f2005dee41b1ef5a0d1f7b69bcd6c8352dac016
treebf629f9a545ff2bf1322bf0c98bfd3100935f633
parent766c3b56e5071b5a5a64e88df6d3abe5232dd958
oeqa/utils/qemurunner: Set both the threadport&serverport with tcpserial parameter

After the commit ad522ea6a64e ("runqemu: Let qemuparams override default
settings"), the order of the two "-serial" parameters when running the
qemu have been switched. The effect of this is that the logging thread
will use ttyS1 (of course can't capture the kernel boot message anymore),
and the test command will run on the ttyS0. So the output of the test
command may be mangled by the kernel message (such as call trace), and
let the test command produce a fake timeout error message. We can't fix
it by just adjusting the order of the threadport and serverport, since
it will break some machines such as qemuarm64 which use the virtio
serial. So using the tcpserial to setup both the threadport and
serverport.

[YOCTO Bug 13309]

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/utils/qemurunner.py