Buildbot always got exit status == 0.
In case when gbs failed the exit status was overwritted by:
${SCRIPTDIR}/apply_patches.sh -r.
Change-Id: I4cc5f1afd1d5fa67d2d5a18ac7e66f445f7dc5f7
Signed-off-by: Tomasz Olszak <t.olszak@samsung.com>
gbs $CONF_FLAG build $PROFILE_FLAG -A armv7l --incremental \
--define "${TIZEN_VERSION}" "$@"
+GBS_RET=$?
${SCRIPTDIR}/apply_patches.sh -r
+APPLY_PATCHES_RET=$?
+
+[ "$GBS_RET" != "0" ] && exit $GBS_RET
+[ "$APPLY_PATCHES_RET" != "0" ] && exit $APPLY_PATCHES_RET
gbs $CONF_FLAG build $PROFILE_FLAG -A armv7l --incremental \
--extra-packs python-base-x86-arm,python-x86-arm,python-xml-x86-arm \
--define "${TIZEN_VERSION}" "$@"
+GBS_RET=$?
${SCRIPTDIR}/apply_patches.sh -r
+APPLY_PATCHES_RET=$?
+
+[ "$GBS_RET" != "0" ] && exit $GBS_RET
+[ "$APPLY_PATCHES_RET" != "0" ] && exit $APPLY_PATCHES_RET