From d3e778da447943518e67f2cb213bc92fdf0c9e5b Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Tue, 8 Jul 2008 19:00:15 -0400 Subject: - try to set up the DIT for a longer period before giving up --- tests/slapd.sh.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/slapd.sh.in b/tests/slapd.sh.in index e19e88d..12ccf0d 100644 --- a/tests/slapd.sh.in +++ b/tests/slapd.sh.in @@ -63,13 +63,14 @@ startslapd() { $SLAPD -D $TESTDIR/config -i $STATEDIR/pid -w $STATEDIR/pid if ! add -f $TESTDIR/config/userRoot.ldif > /dev/null 2> /dev/null ; then local i - for i in `seq 5` ; do + local max=10 + for i in `seq $max` ; do sleep 1 if add -f $TESTDIR/config/userRoot.ldif > /dev/null 2> /dev/null ; then break fi done - if test $i -eq 5 ; then + if test $i -eq $max ; then echo ERROR: failed to add default entry set to server. fi fi -- cgit