]> git.sur5r.net Git - openldap/commitdiff
Wait for central master to start after final restart.
authorHallvard Furuseth <hallvard@openldap.org>
Sun, 6 Dec 2009 21:01:45 +0000 (21:01 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Sun, 6 Dec 2009 21:01:45 +0000 (21:01 +0000)
Narrow tests for failed entry removal: 'RC = success' -> 'rc != noSuchObject'.

tests/scripts/test058-syncrepl-asymmetric

index 45d27e47d402abccc23d1da17eaf0a80b80eb536..cd4ccebdccda1613bc967b088d3e6243b9a12166 100755 (executable)
@@ -2352,11 +2352,16 @@ EOF
        for i in 1 2 3 4 5; do
                $LDAPSEARCH -s base -b "$SUB_DN" -H $URI1 > /dev/null 2>&1
                RC=$?
-               if test $RC != 0; then break; fi
+               if test $RC = 32; then break; fi
                sleep $i
        done
 
-       if test $RC = 0; then
+       if test $RC != 32; then
+               if test $RC != 0; then
+                       echo "ldapsearch failed ($RC)!"
+                       test $KILLSERVERS != no && kill -HUP $KILLPIDS
+                       exit $RC
+               fi
                echo "ERROR: Entry not removed on central master!"
                RACE_ERROR=1
                break
@@ -2371,8 +2376,8 @@ EOF
                sleep $i
        done
 
-       if test $RC = 0; then
-               echo "ERROR: Entry not removed on central search!"
+       if test $RC != 32; then
+               echo "ERROR: Entry not removed on central search! (RC=$RC)"
                RACE_ERROR=1
                break
        fi