summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKoen Kooi <koen.kooi@linaro.org>2016-03-29 17:44:28 +0200
committerKoen Kooi <koen.kooi@linaro.org>2016-03-29 17:44:28 +0200
commit00140a97c8d7f30a48116798674762bd5af64b30 (patch)
tree7fc49685e81cfdbfee61c673a7f5623a5f96551b
parente18c91f14eb4ef2cd5c285db17934c73d2d7993c (diff)
init-and-build: propagate bitbake error codes back to caller
This should make the CI fail when the build fails instead keep on going. Change-Id: I7a350a7cfdbcdf4e4d4d6b2f9297c26eb39cc5ef Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
-rwxr-xr-xinit-and-build.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/init-and-build.sh b/init-and-build.sh
index d09760e..c91be5f 100755
--- a/init-and-build.sh
+++ b/init-and-build.sh
@@ -105,3 +105,8 @@ fi
#bitbake gcc-cross || true
bitbake $bitbake_verbose $@
+# propagate bad return codes to caller
+rc=$?
+if [[ $rc != 0 ]] ; then
+ exit $rc
+fi