kunit: tool: Add support for overriding the QEMU serial port
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 28 Feb 2023 10:31:02 +0000 (11:31 +0100)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 5 Apr 2023 18:51:06 +0000 (12:51 -0600)
commit5ffb8629b133fecf7cdd36134ae6d6a1efb46eb5
treea1223d870026b0f675c4b35a1df54e3ca150e3de
parentcb8865fd865f5b2f656d0d91f3b0146ef1acb10d
kunit: tool: Add support for overriding the QEMU serial port

On some platforms, the console is not the first serial port.  To make
this work, the first serial port in QEMU must be set to "null".

Add support for this by adding an optional "serial" parameter, which
defaults to "stdio", and can be overridden by platform-specific
configuration.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/kunit/kunit_kernel.py
tools/testing/kunit/qemu_config.py