1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

ctdb-tests: Wait for fake_ctdbd to start, fail if it doesn't

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13097

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2017-10-25 17:52:04 +11:00 committed by Amitay Isaacs
parent 274fef9b84
commit 6fad42103c

View File

@ -48,10 +48,14 @@ cleanup_ctdbd ()
setup_ctdbd ()
{
debug "Setting up fake ctdbd"
echo "Setting up fake ctdbd"
$VALGRIND fake_ctdbd -d "$FAKE_CTDBD_DEBUGLEVEL" \
-s "$ctdbd_socket" -p "$ctdbd_pidfile"
# Wait till fake_ctdbd is running
wait_until 10 test -S "$ctdbd_socket" || \
die "fake_ctdbd failed to start"
test_cleanup cleanup_ctdbd
}