mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +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:
parent
a6d464aa2e
commit
224e897872
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user