runqemu: Improve error handling/exit codes

runqemu-internal is sourced so should be returning with an error code in
case of errors. runqemu needs to deal with this.

This patch fixes up the various error paths so we're consistent and get
a sane exit status for runqemu which helps a lot in its use in the qemu
runtime testing on the autobuilder.

(From OE-Core rev: 753533b2f338ff2ef97eebd5eace7623404ae457)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2013-03-20 11:48:53 +00:00
parent 8207e3f48b
commit ebf4d7a90d
2 changed files with 19 additions and 17 deletions

View File

@@ -453,3 +453,4 @@ INTERNAL_SCRIPT=`which runqemu-internal`
fi
. $INTERNAL_SCRIPT
exit $?