ctdb-tests: Use ctdb_test_skip() when initscript can not be found
[vlendec/samba-autobuild/.git] / 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