git.samba.org
/
vlendec
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ctdb-tests: Use ctdb_test_skip() when initscript can not be found
[vlendec/samba-autobuild/.git]
/
ctdb
/
tests
/
UNIT
/
shellcheck
/
init_script.sh
diff --git
a/ctdb/tests/UNIT/shellcheck/init_script.sh
b/ctdb/tests/UNIT/shellcheck/init_script.sh
index 148f6d7a4ff6bdae42713a0ee91a80b514f609c9..1e1d54c08af08d9e86dd2fe5d103c5990a9c8eae 100755
(executable)
--- 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