From 224e8978723bd469c2da772208a17725e868fbef Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Thu, 12 Dec 2019 09:43:58 +1100 Subject: [PATCH] ctdb-tests: Fix handling of --no-event-scripts option Shellcheck noticed that pnn was never referenced. Not sure this ever worked or whether it got broken somewhere along the way. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- ctdb/tests/scripts/integration_local_daemons.bash | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ctdb/tests/scripts/integration_local_daemons.bash b/ctdb/tests/scripts/integration_local_daemons.bash index 422f2941823..9850ad2208c 100644 --- a/ctdb/tests/scripts/integration_local_daemons.bash +++ b/ctdb/tests/scripts/integration_local_daemons.bash @@ -34,10 +34,10 @@ setup_ctdb () fi if $no_event_scripts ; then - local pnn - for pnn in $(seq 0 $((CTDB_TEST_LOCAL_DAEMONS - 1))) ; do - rm -vf "${CTDB_BASE}/events/legacy/"* - done + # Want CTDB_BASE expanded when executed under onnode + # shellcheck disable=SC2016 + $ctdb_local_daemons onnode -q all \ + 'rm "${CTDB_BASE}/events/legacy/"*' fi if $CTDB_TEST_PRINT_LOGS_ON_ERROR ; then -- 2.47.2