From 3d5de9b26d4019e25d644c6e28e5f3a58f3f8730 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Fri, 6 Dec 2019 16:12:08 +1100 Subject: [PATCH] ctdb-tests: Flag setup, startup, shutdown failures as test errors Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- ctdb/tests/scripts/integration.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ctdb/tests/scripts/integration.bash b/ctdb/tests/scripts/integration.bash index adf8d0363cf..31f4387a404 100644 --- a/ctdb/tests/scripts/integration.bash +++ b/ctdb/tests/scripts/integration.bash @@ -50,7 +50,7 @@ ctdb_test_exit () unset ctdb_test_exit_hook echo "Stopping cluster..." - ctdb_nodes_stop + ctdb_nodes_stop || ctdb_test_error "Cluster shutdown failed" exit $status } @@ -95,10 +95,10 @@ ctdb_test_init () ctdb_nodes_stop >/dev/null 2>&1 || true echo "Configuring cluster..." - setup_ctdb "$@" || exit 1 + setup_ctdb "$@" || ctdb_test_error "Cluster configuration failed" echo "Starting cluster..." - ctdb_init || exit 1 + ctdb_init || ctdb_test_error "Cluster startup failed" echo "*** SETUP COMPLETE AT $(date '+%F %T'), RUNNING TEST..." }