[build] Fix exit status
Return proper exit status on failed builds Change-Id: I2da7773e76d3261c53c12aded5633a4751a16d64 Closes-Bug: #1616432
This commit is contained in:
parent
ea13973de1
commit
80b92b818d
|
@ -176,6 +176,7 @@ main () {
|
|||
;;
|
||||
esac
|
||||
fi
|
||||
local EXIT_STATUS=$(cat ${DEST_PATH}/exitstatus || echo 1)
|
||||
|
||||
# Get into buildroot
|
||||
if [ "${ACTION_SHELL}" == "true" ] ; then
|
||||
|
@ -195,6 +196,10 @@ main () {
|
|||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
if [ "$EXIT_STATUS" -ne 0 ] ; then
|
||||
fail_exit "BUILD FAILED: returned result is $EXIT_STATUS"
|
||||
fi
|
||||
}
|
||||
|
||||
main "$@"
|
||||
|
|
Loading…
Reference in New Issue