mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
ctdb-tests: Re-indent and re-format some functions
This makes the next commit much easier to read. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
df2d752e29
commit
0328098285
@ -126,7 +126,8 @@ tcpdump_wait ()
|
||||
|
||||
tcpdump_check ()
|
||||
{
|
||||
local found=$(tcpdump -n -r $tcpdump_filename "$filter" 2>/dev/null | wc -l)
|
||||
local found=$(tcpdump -n -r $tcpdump_filename \
|
||||
"$filter" 2>/dev/null | wc -l)
|
||||
[ $found -ge $count ]
|
||||
}
|
||||
|
||||
@ -134,7 +135,9 @@ tcpdump_wait ()
|
||||
if ! wait_until 30 tcpdump_check ; then
|
||||
echo "DEBUG AT $(date '+%F %T'):"
|
||||
local i
|
||||
for i in "onnode -q 0 $CTDB status" "netstat -tanp" "tcpdump -n -e -r $tcpdump_filename" ; do
|
||||
for i in "onnode -q 0 $CTDB status" \
|
||||
"netstat -tanp" \
|
||||
"tcpdump -n -e -r $tcpdump_filename" ; do
|
||||
echo "$i"
|
||||
$i || true
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user