1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

ctdb-tests: Add function wait_until_node_has_no_ips()

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2018-10-08 11:05:41 +11:00 committed by Amitay Isaacs
parent 698a9ef36e
commit eda1296d67

View File

@ -480,6 +480,13 @@ wait_until_node_has_some_ips ()
wait_until 60 node_has_some_ips "$@"
}
wait_until_node_has_no_ips ()
{
echo "Waiting until no IPs are assigned to node ${test_node}"
wait_until 60 ! node_has_some_ips "$@"
}
#######################################
_service_ctdb ()