CI: future-proof return semantics in check-failure.sh
In case we add further check functions, use a return rather than exit. Change-Id: Ie2a53028802ecde628bc9fe0b4e3236bdb588cf9
This commit is contained in:
parent
1d0171fc70
commit
613b00cccf
@ -30,7 +30,7 @@ check_failure() {
|
|||||||
# NOTE(mgoddard): monasca-thresh is a one-shot container that exits but
|
# NOTE(mgoddard): monasca-thresh is a one-shot container that exits but
|
||||||
# remains in place, leaving it with a status of exited. This is harmless.
|
# remains in place, leaving it with a status of exited. This is harmless.
|
||||||
if [[ "$failed_containers" = "monasca_thresh" ]]; then
|
if [[ "$failed_containers" = "monasca_thresh" ]]; then
|
||||||
exit 0
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n "$failed_containers" ]]; then
|
if [[ -n "$failed_containers" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user