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:
parent
30180ef6c2
commit
8402dabf88
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user