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

Simon Glass sjg at chromium.org
Sun Feb 15 22:40:41 CET 2015


On 10 February 2015 at 12:50, Simon Glass <sjg at chromium.org> wrote:
> 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>

Applied to u-boot-x86/sandbox.


More information about the U-Boot mailing list