From bbd96993c85bd3203ff555f18279260acb5f7695 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Thu, 8 Feb 2018 05:57:44 +1100 Subject: [PATCH] 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 --- ctdb/tests/eventscripts/scripts/local.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ctdb/tests/eventscripts/scripts/local.sh b/ctdb/tests/eventscripts/scripts/local.sh index d525c8d09618..0bfd66839b5a 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 } -- 2.34.1