]> git.sur5r.net Git - u-boot/commit
sandbox: Return '-c command' exit value as sandbox exit code
authorJoe Hershberger <joe.hershberger@ni.com>
Fri, 6 Feb 2015 21:37:31 +0000 (15:37 -0600)
committerSimon Glass <sjg@chromium.org>
Sun, 15 Feb 2015 21:34:06 +0000 (14:34 -0700)
commit88539e4431cd6a596da316f81b644c4df606dbd9
tree25c39cd598ff62bb20e17eb3a9c08de3f734f61d
parentd908898333b22fb2345a7a165ff837fa6b947b0b
sandbox: Return '-c command' exit value as sandbox exit code

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@ni.com>
Acked-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/start.c
arch/sandbox/cpu/state.c
arch/sandbox/include/asm/state.h