From a64665ae914dfb214247229880baf401f85ecde7 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Wed, 8 Mar 2017 01:31:53 -0800 Subject: [PATCH] Fix error handling in CI other script. --- test/utils/shippable/other.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/utils/shippable/other.sh b/test/utils/shippable/other.sh index e4a5acbb94e..01c51907d37 100755 --- a/test/utils/shippable/other.sh +++ b/test/utils/shippable/other.sh @@ -19,10 +19,14 @@ retry.py pip install tox --disable-pip-version-check errors=0 +set +e + ansible-test compile --color -v --junit --requirements || ((errors++)) ansible-test sanity --color -v --junit --tox --skip-test ansible-doc --python 2.7 || ((errors++)) ansible-test sanity --color -v --junit --tox --test ansible-doc --coverage || ((errors++)) +set -e + if [ ${errors} -gt 0 ]; then echo "${errors} of the above ansible-test command(s) failed." exit 1