1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

ctdb-tests: Use ctdb_test_skip() when initscript can not be found

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2020-03-09 20:03:09 +11:00 committed by Amitay Isaacs
parent 30180ef6c2
commit 8402dabf88

View File

@ -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