]> git.kernelconcepts.de Git - karo-tx-uboot.git/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)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 11:52:19 +0000 (13:52 +0200)
commitc59369a88e8c88e63ae9cb6c8a536915f0d17873
tree17b5901c80fa8dbb3a9dabfe480480033220ff78
parent60e3dd4be3c8ae932f5a42d88bf1155f2cbd27a9
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