git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30180ef
)
ctdb-tests: Use ctdb_test_skip() when initscript can not be found
author
Martin Schwenke
<martin@meltin.net>
Mon, 9 Mar 2020 09:03:09 +0000
(20:03 +1100)
committer
Amitay Isaacs
<amitay@samba.org>
Tue, 10 Mar 2020 07:37:34 +0000
(07:37 +0000)
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tests/UNIT/shellcheck/init_script.sh
patch
|
blob
|
history
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