From a14671f829ccfa8a415cb85e2d4ae7b06135d5be Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Tue, 24 Apr 2012 16:59:38 +1000 Subject: tests/eventscripts: Add sanity check to esnure events.d/ can be found If it can't, the installation is probably inconsistent, so a (hopefully) helpful message is printed. :-) Signed-off-by: Martin Schwenke (This used to be ctdb commit df732ca8e27f0f3417b4d5d259157bd0e0632124) --- ctdb/tests/eventscripts/scripts/local.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'ctdb/tests/eventscripts/scripts') diff --git a/ctdb/tests/eventscripts/scripts/local.sh b/ctdb/tests/eventscripts/scripts/local.sh index 79d0ea053a..25003052a0 100644 --- a/ctdb/tests/eventscripts/scripts/local.sh +++ b/ctdb/tests/eventscripts/scripts/local.sh @@ -29,6 +29,31 @@ else fi export CTDB_BASE +if [ ! -d "${CTDB_BASE}/events.d" ] ; then + cat <