aboutsummaryrefslogtreecommitdiff
path: root/tests/test-ironic.sh
diff options
context:
space:
mode:
authorPierre Riteau <pierre@stackhpc.com>2020-09-10 17:11:57 +0200
committerPierre Riteau <pierre@stackhpc.com>2020-09-10 17:11:57 +0200
commit8a8c221286cbf37f6f6a853a5fc348e3b09a2a7c (patch)
treea4c74d9795a957248c0b4e6f009c5becdd514ada /tests/test-ironic.sh
parent010a1f9219fbaa836c19c4dfa2017edccf7fea76 (diff)
downloadkolla-ansible-8a8c221286cbf37f6f6a853a5fc348e3b09a2a7c.tar.gz
kolla-ansible-8a8c221286cbf37f6f6a853a5fc348e3b09a2a7c.zip
Fix test-ironic.sh not catching errors
Change-Id: Ia4626479e092be8b033bcd4e75e78a33167423d3
Diffstat (limited to 'tests/test-ironic.sh')
-rwxr-xr-xtests/test-ironic.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test-ironic.sh b/tests/test-ironic.sh
index b92c1407f..72fdc8e5a 100755
--- a/tests/test-ironic.sh
+++ b/tests/test-ironic.sh
@@ -131,12 +131,14 @@ function test_ironic_logged {
function test_ironic {
echo "Testing Ironic"
- if ! test_ironic_logged > /tmp/logs/ansible/test-ironic 2>&1; then
+ test_ironic_logged > /tmp/logs/ansible/test-ironic 2>&1
+ result=$?
+ if [[ $result != 0 ]]; then
echo "Testing Ironic failed. See ansible/test-ironic for details"
- return 1
else
echo "Successfully tested Ironic. See ansible/test-ironic for details"
fi
+ return $result
}
test_ironic