From: Martin Schwenke Date: Tue, 31 Aug 2010 07:40:40 +0000 (+1000) Subject: Eventscripts: make loadconfig() function hookable by the test suite. X-Git-Url: http://git.samba.org/?p=metze%2Fctdb%2Fwip.git;a=commitdiff_plain;h=1d77a3adfff893b3c01b87f791e72c0d3148425c Eventscripts: make loadconfig() function hookable by the test suite. Rename loadconfig() to _loadconfig(). Add a new loadconfig() that simply calls _loadconfig(). This makes it easy for the test suite to override loadconfig(). Signed-off-by: Martin Schwenke --- diff --git a/config/functions b/config/functions index 854060a6..610085b6 100755 --- a/config/functions +++ b/config/functions @@ -4,7 +4,7 @@ PATH=/bin:/usr/bin:/usr/sbin:/sbin:$PATH ####################################### # pull in a system config file, if any -loadconfig() { +_loadconfig() { if [ -z "$1" ] ; then foo="${service_config:-${service_name}}" @@ -25,6 +25,10 @@ loadconfig() { fi } +loadconfig () { + _loadconfig "$@" +} + ############################################################## # determine on what type of system (init style) we are running detect_init_style() {