mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +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"
|
script="/usr/local/etc/init.d/ctdb"
|
||||||
fi
|
fi
|
||||||
if [ ! -r "$script" ] ; then
|
if [ ! -r "$script" ] ; then
|
||||||
echo "WARNING: Unable to find ctdb init script, skipping test"
|
ctdb_test_skip "Unable to find ctdb init script"
|
||||||
exit 0
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user