summaryrefslogtreecommitdiffstats
path: root/arch/sandbox/include/asm
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2015-02-06 15:37:31 -0600
committerSimon Glass <sjg@chromium.org>2015-02-15 14:34:06 -0700
commit88539e4431cd6a596da316f81b644c4df606dbd9 (patch)
tree25c39cd598ff62bb20e17eb3a9c08de3f734f61d /arch/sandbox/include/asm
parentd908898333b22fb2345a7a165ff837fa6b947b0b (diff)
downloadtalos-obmc-uboot-88539e4431cd6a596da316f81b644c4df606dbd9.tar.gz
talos-obmc-uboot-88539e4431cd6a596da316f81b644c4df606dbd9.zip
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>
Diffstat (limited to 'arch/sandbox/include/asm')
-rw-r--r--arch/sandbox/include/asm/state.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/arch/sandbox/include/asm/state.h b/arch/sandbox/include/asm/state.h
index 32d55ccc4c..a0c24ba1e0 100644
--- a/arch/sandbox/include/asm/state.h
+++ b/arch/sandbox/include/asm/state.h
@@ -10,13 +10,6 @@
#include <stdbool.h>
#include <linux/stringify.h>
-/* How we exited U-Boot */
-enum exit_type_id {
- STATE_EXIT_NORMAL,
- STATE_EXIT_COLD_REBOOT,
- STATE_EXIT_POWER_OFF,
-};
-
/**
* Selects the behavior of the serial terminal.
*
@@ -50,7 +43,6 @@ struct sandbox_state {
const char *cmd; /* Command to execute */
bool interactive; /* Enable cmdline after execute */
const char *fdt_fname; /* Filename of FDT binary */
- enum exit_type_id exit_type; /* How we exited U-Boot */
const char *parse_err; /* Error to report from parsing */
int argc; /* Program arguments */
char **argv; /* Command line arguments */
@@ -139,13 +131,6 @@ struct sandbox_state_io {
}
/**
- * Record the exit type to be reported by the test program.
- *
- * @param exit_type Exit type to record
- */
-void state_record_exit(enum exit_type_id exit_type);
-
-/**
* Gets a pointer to the current state.
*
* @return pointer to state
OpenPOWER on IntegriCloud