diff options
author | Martin Schwenke <martin@meltin.net> | 2019-12-12 09:43:58 +1100 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2020-02-12 03:11:39 +0000 |
commit | 224e8978723bd469c2da772208a17725e868fbef (patch) | |
tree | b948a83016487e0db785ac87ce1c59dddc3644c1 | |
parent | a6d464aa2ea9d7633581ace6834bce8b06f2bd70 (diff) | |
download | samba-224e8978723bd469c2da772208a17725e868fbef.tar.gz |
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>
-rw-r--r-- | ctdb/tests/scripts/integration_local_daemons.bash | 8 |
1 files 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 |