git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8038f4f
)
ctdb-tests: Invert some logic so it makes sense
author
Martin Schwenke
<martin@meltin.net>
Tue, 3 Sep 2019 07:54:29 +0000
(17:54 +1000)
committer
Amitay Isaacs
<amitay@samba.org>
Tue, 17 Sep 2019 04:35:26 +0000
(
04:35
+0000)
The test should be outside the loop.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tests/simple/scripts/local_daemons.bash
patch
|
blob
|
history
diff --git
a/ctdb/tests/simple/scripts/local_daemons.bash
b/ctdb/tests/simple/scripts/local_daemons.bash
index 7bba0c32333caa11e94478a2e95bd4e6f100e0ae..17aad30715858f56a903ab37957be80c4c84bdae 100644
(file)
--- a/
ctdb/tests/simple/scripts/local_daemons.bash
+++ b/
ctdb/tests/simple/scripts/local_daemons.bash
@@
-43,12
+43,12
@@
setup_ctdb ()
exit 1
fi
-
local pn
n
- for pnn in $(seq 0 $((TEST_LOCAL_DAEMONS - 1))) ; do
- if $no_event_scripts ; then
+
if $no_event_scripts ; the
n
+ local pnn
+ for pnn in $(seq 0 $((TEST_LOCAL_DAEMONS - 1))) ; do
rm -vf "${CTDB_BASE}/events/legacy/"*
- fi
- done
+ done
+ fi
}
start_ctdb_1 ()