mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
sandbox: Allow -c argument to provide a command list
This allows passing of entire scripts to sandbox with the -c argument, which is useful for testing. Commands can be delimited with a newline or semicolon. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
095686d3f5
commit
39042d821e
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ int sandbox_main_loop_init(void)
|
|||
|
||||
/* Execute command if required */
|
||||
if (state->cmd) {
|
||||
run_command(state->cmd, 0);
|
||||
run_command_list(state->cmd, -1, 0);
|
||||
os_exit(state->exit_type);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue