Fixed return status for tv and mobile build scripts.
authorTomasz Olszak <t.olszak@samsung.com>
Thu, 16 Oct 2014 14:07:01 +0000 (16:07 +0200)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
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>
tizen_src/build/build_mobile.sh
tizen_src/build/build_tv.sh

index e669416..9db657d 100755 (executable)
@@ -22,5 +22,10 @@ fi
 
 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
index 3ad90bd..b46e983 100755 (executable)
@@ -23,5 +23,10 @@ fi
 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