1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

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 <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2019-12-12 09:43:58 +11:00 committed by Amitay Isaacs
parent a6d464aa2e
commit 224e897872

View File

@ -34,10 +34,10 @@ setup_ctdb ()
fi fi
if $no_event_scripts ; then if $no_event_scripts ; then
local pnn # Want CTDB_BASE expanded when executed under onnode
for pnn in $(seq 0 $((CTDB_TEST_LOCAL_DAEMONS - 1))) ; do # shellcheck disable=SC2016
rm -vf "${CTDB_BASE}/events/legacy/"* $ctdb_local_daemons onnode -q all \
done 'rm "${CTDB_BASE}/events/legacy/"*'
fi fi
if $CTDB_TEST_PRINT_LOGS_ON_ERROR ; then if $CTDB_TEST_PRINT_LOGS_ON_ERROR ; then