summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/eventscripts/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'ctdb/tests/eventscripts/scripts')
-rw-r--r--ctdb/tests/eventscripts/scripts/local.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/ctdb/tests/eventscripts/scripts/local.sh b/ctdb/tests/eventscripts/scripts/local.sh
index fafc8f3b2e..00da7732dd 100644
--- a/ctdb/tests/eventscripts/scripts/local.sh
+++ b/ctdb/tests/eventscripts/scripts/local.sh
@@ -675,7 +675,17 @@ rpc_set_service_failure_response ()
\#*) continue ;;
esac
- if [ "$_numfails" "$_op" "$_li" ] ; then
+ _hit=false
+ if [ "$_op" != "%" ] ; then
+ if [ $_numfails $_op $_li ] ; then
+ _hit=true
+ fi
+ else
+ if [ $(($_numfails $_op $_li)) -eq 0 ] ; then
+ _hit=true
+ fi
+ fi
+ if $_hit ; then
_out=""
_rc=0
for _action in $_actions ; do