From: Martin Schwenke Date: Mon, 9 Mar 2020 09:03:09 +0000 (+1100) Subject: ctdb-tests: Use ctdb_test_skip() when initscript can not be found X-Git-Tag: ldb-2.2.0~1468 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8402dabf880a4aebca6aa6dc48e7db29a96cab28;p=thirdparty%2Fsamba.git ctdb-tests: Use ctdb_test_skip() when initscript can not be found Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/tests/UNIT/shellcheck/init_script.sh b/ctdb/tests/UNIT/shellcheck/init_script.sh index 148f6d7a4ff..1e1d54c08af 100755 --- a/ctdb/tests/UNIT/shellcheck/init_script.sh +++ b/ctdb/tests/UNIT/shellcheck/init_script.sh @@ -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