sandbox: Add -P flag to enable bypassing the pager

Add a new -P command line flag to sandbox that enables pager-bypass
mode. This is useful for tests and automated scripts that need to
disable pager interrupts.

The implementation stores the bypass request in sandbox_state during
command line parsing, then applies it in sandbox_main_loop_init()
after the pager has been initialized.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-08-25 15:10:52 -06:00
parent 048f9d4bb9
commit b74731763e
2 changed files with 16 additions and 0 deletions

View File

@@ -175,6 +175,7 @@ struct sandbox_state {
bool native; /* Adjust to reflect host arch */
bool no_flattree_tests; /* Don't run second set of DM tests */
bool soft_fail; /* Continue on failure */
bool pager_bypass; /* Enable pager-bypass mode */
/* Pointer to information for each SPI bus/cs */
struct sandbox_spi_info spi[CONFIG_SANDBOX_SPI_MAX_BUS]