From: HAMANO Tsukasa Date: Mon, 2 Aug 2021 08:58:53 +0000 (+0900) Subject: fix timing issue for test086-delta-consumer X-Git-Tag: OPENLDAP_REL_ENG_2_6_0~112 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=583db6209d8231e2fe07ff1e566fe1085b6882ea;p=thirdparty%2Fopenldap.git fix timing issue for test086-delta-consumer --- diff --git a/tests/scripts/test086-delta-consumer-config b/tests/scripts/test086-delta-consumer-config index 0177485cdd..8270d13c93 100755 --- a/tests/scripts/test086-delta-consumer-config +++ b/tests/scripts/test086-delta-consumer-config @@ -233,7 +233,7 @@ fi # will also be a consumer for the real cn=schema,cn=config tree. # It has multi-provider enabled so that it can be written directly # while being a consumer of the main schema. -echo "Configuring consumer config DB on provider..." +echo "Configuring accesslog config DB on provider..." $LDAPMODIFY -D cn=config -H $URI1 -y $CONFIGPWF <> $TESTOUT 2>&1 dn: cn=config changetype: modify @@ -266,7 +266,20 @@ olcAccessLogDB: cn=consumer-accesslog olcAccessLogOps: writes olcAccessLogPurge: 07+00:00 01+00:00 olcAccessLogSuccess: TRUE +EOF + +RC=$? +if test $RC != 0 ; then + echo "ldapmodify failed for consumer DB config ($RC)!" + test $KILLSERVERS != no && kill -HUP $KILLPIDS + exit $RC +fi +echo "Waiting 3 seconds for syncrepl to make root accesslog entry..." +sleep 3 + +echo "Configuring consumer config DB on provider..." +$LDAPMODIFY -D cn=config -H $URI1 -y $CONFIGPWF <> $TESTOUT 2>&1 dn: cn=config,cn=consumer changetype: add objectClass: olcGlobal