From: Howard Chu Date: Thu, 3 Apr 2008 08:55:15 +0000 (+0000) Subject: ITS#5437, #5444 add entry to consumer X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~40 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5de6bbcbe04d972535ce2100b1e31c63d7d85cb6;p=openldap ITS#5437, #5444 add entry to consumer --- diff --git a/tests/scripts/test050-syncrepl-multimaster b/tests/scripts/test050-syncrepl-multimaster index db3037070c..ba900129fa 100755 --- a/tests/scripts/test050-syncrepl-multimaster +++ b/tests/scripts/test050-syncrepl-multimaster @@ -348,7 +348,21 @@ $LDAPADD -D "$MANAGERDN" -H $URI1 -w $PASSWD -f $LDIFORDERED \ >> $TESTOUT 2>&1 RC=$? if test $RC != 0 ; then - echo "ldapadd failed for database config ($RC)!" + echo "ldapadd failed for producer database ($RC)!" + test $KILLSERVERS != no && kill -HUP $KILLPIDS + exit $RC +fi + +SLEEP=20 +echo "Waiting $SLEEP seconds for syncrepl to receive changes..." +sleep $SLEEP + +echo "Using ldapadd to populate consumer..." +$LDAPADD -D "$MANAGERDN" -H $URI2 -w $PASSWD -f $LDIFADD1 \ + >> $TESTOUT 2>&1 +RC=$? +if test $RC != 0 ; then + echo "ldapadd failed for consumer database ($RC)!" test $KILLSERVERS != no && kill -HUP $KILLPIDS exit $RC fi