tests/avocado/machine_aspeed.py: Mask systemd services to speed up SDK boot

Reviewed-by: Joel Stanley <joel@jms.id.au>
Message-Id: <20230119123449.531826-8-clg@kaod.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
This commit is contained in:
Cédric Le Goater 2023-02-07 09:02:04 +01:00
parent ed1f5ff842
commit 30d7aac415
1 changed files with 9 additions and 2 deletions

View File

@ -183,7 +183,14 @@ class AST2x00Machine(QemuSystemTest):
class AST2x00MachineSDK(QemuSystemTest):
EXTRA_BOOTARGS = ' quiet'
EXTRA_BOOTARGS = (
'quiet '
'systemd.mask=org.openbmc.HostIpmi.service '
'systemd.mask=xyz.openbmc_project.Chassis.Control.Power@0.service '
'systemd.mask=modprobe@fuse.service '
'systemd.mask=rngd.service '
'systemd.mask=obmc-console@ttyS2.service '
)
# FIXME: Although these tests boot a whole distro they are still
# slower than comparable machine models. There may be some
@ -208,7 +215,7 @@ class AST2x00MachineSDK(QemuSystemTest):
interrupt_interactive_console_until_pattern(
self, 'Hit any key to stop autoboot:', 'ast#')
exec_command_and_wait_for_pattern(
self, 'setenv bootargs ${bootargs}' + self.EXTRA_BOOTARGS, 'ast#')
self, 'setenv bootargs ${bootargs} ' + self.EXTRA_BOOTARGS, 'ast#')
exec_command_and_wait_for_pattern(
self, 'boot', '## Loading kernel from FIT Image')
self.wait_for_console_pattern('Starting kernel ...')