[U-Boot] [PATCH] sandbox: Return '-c command' exit value as sandbox exit code

Simon Glass sjg at chromium.org
Tue Feb 10 20:50:57 CET 2015


On 6 February 2015 at 14:37, Joe Hershberger <joe.hershberger at ni.com> wrote:
>
> When a command is passed into sandbox using the '-c' argument the
> command is run directly. This is most helpful when running tests (such
> as test-dm.sh). Previously the exit code was an unused enum. Change it
> to be the actual return code from the command so that the script calling
> sandbox can know if the command succeeded (tests passed).  Also remove
> the now completely unused "exit_state" in sandbox.
>
> Signed-off-by: Joe Hershberger <joe.hershberger at ni.com>
>
> ---
>
>  arch/sandbox/cpu/start.c         |  6 ++++--
>  arch/sandbox/cpu/state.c         |  5 -----
>  arch/sandbox/include/asm/state.h | 15 ---------------
>  3 files changed, 4 insertions(+), 22 deletions(-)

Acked-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list