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
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