ctdb-tests: Use ctdb_test_skip() when initscript can not be found
authorMartin Schwenke <martin@meltin.net>
Mon, 9 Mar 2020 09:03:09 +0000 (20:03 +1100)
committerAmitay Isaacs <amitay@samba.org>
Tue, 10 Mar 2020 07:37:34 +0000 (07:37 +0000)
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tests/UNIT/shellcheck/init_script.sh

index 148f6d7a4ff6bdae42713a0ee91a80b514f609c9..1e1d54c08af08d9e86dd2fe5d103c5990a9c8eae 100755 (executable)
@@ -12,8 +12,7 @@ if [ -z "$script" ] ; then
                script="/usr/local/etc/init.d/ctdb"
        fi
        if [ ! -r "$script" ] ; then
-               echo "WARNING: Unable to find ctdb init script, skipping test"
-               exit 0
+               ctdb_test_skip "Unable to find ctdb init script"
        fi
 fi