diff options
| author | Mark Goddard <mark@stackhpc.com> | 2021-10-04 09:08:15 +0100 |
|---|---|---|
| committer | Radosław Piliszek <radoslaw.piliszek@gmail.com> | 2021-12-30 14:42:37 +0000 |
| commit | 613b00cccf5d1a9c795ae8ec3b0604c052d9dbff (patch) | |
| tree | 48789172326332f701db89130eab0f6ef840ef02 /tests | |
| parent | 1d0171fc708c87ba73c0726f294b66df49e63cfb (diff) | |
| download | kolla-ansible-613b00cccf5d1a9c795ae8ec3b0604c052d9dbff.tar.gz kolla-ansible-613b00cccf5d1a9c795ae8ec3b0604c052d9dbff.zip | |
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
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/check-failure.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/check-failure.sh b/tests/check-failure.sh index 46b524119..dbc7bb40e 100755 --- a/tests/check-failure.sh +++ b/tests/check-failure.sh @@ -30,7 +30,7 @@ check_failure() { # 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. if [[ "$failed_containers" = "monasca_thresh" ]]; then - exit 0 + return fi if [[ -n "$failed_containers" ]]; then |
