From: Martin Schwenke Date: Mon, 8 Aug 2022 08:09:56 +0000 (+1000) Subject: ctdb-tests: Reformat script using shfmt -w -p -i 0 -fn X-Git-Tag: talloc-2.4.0~1337 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b88e7322d9b4cf617381b12deb393edd87d1cf73;p=thirdparty%2Fsamba.git ctdb-tests: Reformat script using shfmt -w -p -i 0 -fn Whitespace changes only. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/tests/CLUSTER/complex/11_ctdb_delip_removes_ip.sh b/ctdb/tests/CLUSTER/complex/11_ctdb_delip_removes_ip.sh index dba6d075c8d..21e6d1e7914 100755 --- a/ctdb/tests/CLUSTER/complex/11_ctdb_delip_removes_ip.sh +++ b/ctdb/tests/CLUSTER/complex/11_ctdb_delip_removes_ip.sh @@ -25,19 +25,19 @@ timeout=60 increment=5 count=0 echo "Waiting for ${test_ip} to disappear from node ${test_node}..." -while : ; do - try_command_on_node -v $test_node "ip addr show to ${test_node}" - if -n "$out" ; then - echo "Still there..." - if [ $(($count * $increment)) -ge $timeout ] ; then - echo "BAD: Timed out waiting..." - exit 1 +while :; do + try_command_on_node -v $test_node "ip addr show to ${test_node}" + if -n "$out"; then + echo "Still there..." + if [ $(($count * $increment)) -ge $timeout ]; then + echo "BAD: Timed out waiting..." + exit 1 + fi + sleep_for $increment + count=$(($count + 1)) + else + break fi - sleep_for $increment - count=$(($count + 1)) - else - break - fi done echo "GOOD: IP was successfully removed!"