hush: make run_command() return an error on parsing failure
authorRabin Vincent <rabin@rab.in>
Wed, 29 Oct 2014 22:21:41 +0000 (23:21 +0100)
committerTom Rini <trini@ti.com>
Fri, 7 Nov 2014 21:27:06 +0000 (16:27 -0500)
commit2302b3ab85843c9a8dbb3a924030659d87a23349
treead20b1650d4c2911831cedcfe59770d372ecf169
parent128059b926b3c34bbb364dcacd8d0511ff906be8
hush: make run_command() return an error on parsing failure

run_command() returns success even if the command had a syntax error;
correct this behaviour.

Signed-off-by: Rabin Vincent <rabin@rab.in>
Acked-by: Simon Glass <sjg@chromium.org)
common/cli_hush.c
test/command_ut.c