]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-tests: Reformat script using shfmt -w -p -i 0 -fn
authorMartin Schwenke <martin@meltin.net>
Mon, 8 Aug 2022 08:09:56 +0000 (18:09 +1000)
committerAmitay Isaacs <amitay@samba.org>
Thu, 25 Aug 2022 15:22:36 +0000 (15:22 +0000)
Whitespace changes only.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tests/CLUSTER/complex/11_ctdb_delip_removes_ip.sh

index dba6d075c8df111e2561c7d0f399fc39bb64585a..21e6d1e79142ccb1e86a72d20fe7d99b3947b7ba 100755 (executable)
@@ -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!"