From: Martin Schwenke Date: Wed, 7 Feb 2018 18:57:44 +0000 (+1100) Subject: ctdb-tests: Allow modularisation of event script testing support X-Git-Tag: talloc-2.1.13~185 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bbd96993c85bd3203ff555f18279260acb5f7695;p=thirdparty%2Fsamba.git ctdb-tests: Allow modularisation of event script testing support local.sh is enormous. Allow per-event-script customisation. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/tests/eventscripts/scripts/local.sh b/ctdb/tests/eventscripts/scripts/local.sh index d525c8d0961..0bfd66839b5 100644 --- a/ctdb/tests/eventscripts/scripts/local.sh +++ b/ctdb/tests/eventscripts/scripts/local.sh @@ -1283,6 +1283,11 @@ define_test () printf "%-17s %-10s %-4s - %s\n\n" "$script" "$event" "$_num" "$desc" + _f="${TEST_SUBDIR}/scripts/${script}.sh" + if [ -r "$_f" ] ; then + . "$_f" + fi + ctdb_set_pnn 0 }