Skip to content
Snippets Groups Projects
Commit 39042d82 authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

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: default avatarSimon Glass <sjg@chromium.org>
parent 095686d3
No related branches found
No related tags found
No related merge requests found
...@@ -90,7 +90,7 @@ int sandbox_main_loop_init(void) ...@@ -90,7 +90,7 @@ int sandbox_main_loop_init(void)
/* Execute command if required */ /* Execute command if required */
if (state->cmd) { if (state->cmd) {
run_command(state->cmd, 0); run_command_list(state->cmd, -1, 0);
os_exit(state->exit_type); os_exit(state->exit_type);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment