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 Signed-off-by: Cédric Le Goater <clg@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-ID: <20260617042718.2883655-1-clg@redhat.com> Signed-off-by: Thomas Huth <th.huth@posteo.eu>
26 lines
876 B
Python
Executable File
26 lines
876 B
Python
Executable File
#!/usr/bin/env python3
|
|
#
|
|
# Functional test that boots the ASPEED machines
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
from qemu_test import Asset
|
|
from aspeed import AspeedTest
|
|
|
|
|
|
class BletchleyMachine(AspeedTest):
|
|
|
|
ASSET_BLETCHLEY_FLASH = Asset(
|
|
'https://github.com/legoater/qemu-aspeed-boot/raw/master/images/bletchley-bmc/openbmc-20250128071329/obmc-phosphor-image-bletchley-20250128071329.static.mtd.xz',
|
|
'db21d04d47d7bb2a276f59d308614b4dfb70b9c7c81facbbca40a3977a2d8844')
|
|
|
|
def test_arm_ast2600_bletchley_openbmc(self):
|
|
image_path = self.uncompress(self.ASSET_BLETCHLEY_FLASH)
|
|
|
|
self.do_test_arm_aspeed_openbmc('bletchley-bmc', image=image_path,
|
|
uboot='2019.04', cpu_id='0xf00',
|
|
soc='AST2600 rev A3')
|
|
|
|
if __name__ == '__main__':
|
|
AspeedTest.main()
|