BUG: https://bugzilla.samba.org/show_bug.cgi?id=13012
This avoids a potential race where the client is not properly
registered before "ctdb process-exists" is called.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
(cherry picked from commit
ff75f0836aef56476ec45a3bc8f3ca22c118e3a4)
ctdb_test_exit_hook_add cleanup
-echo "Checking for PID $client_pid on node $test_node"
+echo "Waiting until PID $client_pid is registered on node $test_node"
status=0
-try_command_on_node $test_node \
+wait_until 30 try_command_on_node $test_node \
"$CTDB process-exists ${client_pid}" || status=$?
echo "$out"