TT#16553 Set 'error' status if non-zero returned

All non-zero returned values are caught by '-e' option and passed
to function wait_exit by 'trap'.
So if it is an error we can set 'error' status in this function.

Change-Id: I762e5470d94a537b4f8f0e32fe6d0c1575bbb075
changes/48/23448/2
Mykola Malkov 7 years ago
parent 44d59feb06
commit ee8938aeac

@ -315,6 +315,9 @@ status_wait() {
wait_exit() {
local e_code="${?}"
if [[ "${e_code}" -ne 0 ]]; then
set_deploy_status "error"
fi
trap '' 1 2 3 6 15 ERR EXIT
status_wait
exit "${e_code}"

Loading…
Cancel
Save