]> git.ipfire.org Git - thirdparty/qemu.git/commit
tests/functional/aspeed: unify boot completion detection on 'login:' prompt
authorCédric Le Goater <clg@redhat.com>
Wed, 17 Jun 2026 04:27:18 +0000 (06:27 +0200)
committerCédric Le Goater <clg@redhat.com>
Tue, 7 Jul 2026 12:28:55 +0000 (14:28 +0200)
commitb04746bd0d7c116b94fe3cd7e105849d481c21a6
tree69f3da513567e920f2ba5542affaf32f8ab0fc26
parent27d543b88016e05dd2f02113d3fc4373b595b251
tests/functional/aspeed: unify boot completion detection on 'login:' prompt

The boot completion check in AspeedTest waits for the systemd
"Hostname set to" message, which occasionally causes intermittent test
timeouts, e.g. on ast2500 SoC machines. The root cause seems to be
console output interleaving of both systemd and the getty login
process. This results in the expected pattern string being broken up.

Unify and simplify all boot completion checks by looking for the
generic 'login:' substring in AspeedTest.wait_for_boot_complete().
With the override gone, remove the redundant FacebookAspeedTest class
and update the Anacapa, Bletchley, and Catalina tests to inherit
directly from AspeedTest. Also drop the now-dead image_hostname
parameter from do_test_arm_aspeed_openbmc().

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Resolves: https://gitlab.com/qemu-project/qemu/-/work_items/3117
Reviewed-by: Thomas Huth <thuth@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20260617042718.2883655-1-clg@redhat.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
tests/functional/arm/test_aspeed_anacapa.py
tests/functional/arm/test_aspeed_bletchley.py
tests/functional/arm/test_aspeed_catalina.py
tests/functional/arm/test_aspeed_gb200nvl_bmc.py
tests/functional/aspeed.py