ctdb-tests: Force test failure if local daemon setup fails
authorMartin Schwenke <martin@meltin.net>
Mon, 21 Jan 2019 01:13:08 +0000 (12:13 +1100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 5 Mar 2019 19:29:12 +0000 (19:29 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13800

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
(cherry picked from commit ce09d9c3e4c72ebec7a21686ae913398a5c9020f)

ctdb/tests/simple/scripts/local_daemons.bash

index cf6671757b38367b333c52775cf5c9857b8cb10b..5d07b1f63988ebbc30668fdc64e16d2c6fb87d60 100644 (file)
@@ -34,6 +34,9 @@ setup_ctdb ()
                ${public_addresses:+-P} ${public_addresses} \
                ${CTDB_USE_IPV6:+-6} \
                ${TEST_SOCKET_WRAPPER_SO_PATH:+-S} ${TEST_SOCKET_WRAPPER_SO_PATH}
+       if [ $? -ne 0 ] ; then
+               exit 1
+       fi
 
        local pnn
        for pnn in $(seq 0 $(($TEST_LOCAL_DAEMONS - 1))) ; do