mirror of
https://git.yoctoproject.org/poky
synced 2026-09-13 09:49:32 +02:00
oeqa: support passing custom boot patterns to runqemu
This allows defining non-standard patterns from QEMU tests just as they are already supported by the testimage.bbclass. Will allow testing non-Linux shells in QEMU, too (e.g. a U-Boot shell or another bootloader shell). (From OE-Core rev: f9e6c3deee5a4159a09396b625a7327f6c204df5) Signed-off-by: Enrico Jorns <ejo@pengutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
6b90b53c7a
commit
b5c11f2f04
@@ -88,7 +88,7 @@ class QemuTarget(BaseTarget):
|
||||
|
||||
supported_image_fstypes = ['ext3', 'ext4', 'cpio.gz', 'wic']
|
||||
|
||||
def __init__(self, d, logger, image_fstype=None):
|
||||
def __init__(self, d, logger, image_fstype=None, boot_patterns=None):
|
||||
|
||||
import oe.types
|
||||
|
||||
@@ -141,7 +141,8 @@ class QemuTarget(BaseTarget):
|
||||
dump_dir = dump_dir,
|
||||
logger = logger,
|
||||
tmpfsdir = d.getVar("RUNQEMU_TMPFS_DIR"),
|
||||
serial_ports = len(d.getVar("SERIAL_CONSOLES").split()))
|
||||
serial_ports = len(d.getVar("SERIAL_CONSOLES").split()),
|
||||
boot_patterns = boot_patterns)
|
||||
|
||||
self.monitor_dumper = MonitorDumper(dump_monitor_cmds, dump_dir, self.runner)
|
||||
if (self.monitor_dumper):
|
||||
|
||||
Reference in New Issue
Block a user