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: Allow use of setup_ctdb_base() outside of test cases
[vlendec/samba-autobuild/.git]
/
ctdb
/
tests
/
scripts
/
common.sh
diff --git
a/ctdb/tests/scripts/common.sh
b/ctdb/tests/scripts/common.sh
index 41464abe5d50605114216408ae1187e58b94b0c5..c1713fa1f8986765a8aea8c7028e83ca1ff500ca 100644
(file)
--- a/
ctdb/tests/scripts/common.sh
+++ b/
ctdb/tests/scripts/common.sh
@@
-95,6
+95,12
@@
setup_ctdb_base ()
cp -pr "${CTDB_SCRIPTS_BASE}/${_i}" "${CTDB_BASE}/"
done
+ mkdir -p "${CTDB_BASE}/events/legacy"
+
+ if [ -z "$TEST_SUBDIR" ] ; then
+ return
+ fi
+
for _i in "${TEST_SUBDIR}/etc-ctdb/"* ; do
# No/empty etc-ctdb directory
[ -e "$_i" ] || break