From: Martin Schwenke Date: Thu, 2 Mar 2017 10:55:54 +0000 (+1100) Subject: ctdb-tests: Generalise SM_NOTIFY output format in statd-callout tests X-Git-Tag: talloc-2.1.12~309 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4bb8a6222a7b24c8877aa8a799d6b10187f8259f;p=thirdparty%2Fsamba.git ctdb-tests: Generalise SM_NOTIFY output format in statd-callout tests 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 b5eeb92f56f..4af1522e542 100644 --- a/ctdb/tests/eventscripts/scripts/local.sh +++ b/ctdb/tests/eventscripts/scripts/local.sh @@ -706,10 +706,10 @@ check_statd_callout_smnotify () while read _x _sip _x ; do for _cip ; do cat < ${_cip}, MON_NAME=${_sip}, STATE=${_state_even} +SM_NOTIFY: ${_sip} -> ${_cip}, MON_NAME=${NFS_HOSTNAME}, STATE=${_state_even} +SM_NOTIFY: ${_sip} -> ${_cip}, MON_NAME=${_sip}, STATE=${_state_odd} +SM_NOTIFY: ${_sip} -> ${_cip}, MON_NAME=${NFS_HOSTNAME}, STATE=${_state_odd} EOF done done | { diff --git a/ctdb/tests/eventscripts/stubs/smnotify b/ctdb/tests/eventscripts/stubs/smnotify index 414fa99a897..2bace779df0 100755 --- a/ctdb/tests/eventscripts/stubs/smnotify +++ b/ctdb/tests/eventscripts/stubs/smnotify @@ -1,3 +1,39 @@ #!/bin/sh -# echo args -echo "$*" + +usage() +{ + _prog="${0##*/}" # basename + cat < ${cip}, MON_NAME=${mon_name}, STATE=${state}"