mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Fix checks of exit values from ldapcompare
This commit is contained in:
parent
262c8cd5b5
commit
ef7f08f914
@ -137,11 +137,11 @@ for P in $PORT1 $PORT2 ; do
|
|||||||
|
|
||||||
DN="cn=Mark Elliot,ou=Alumni Association,ou=People,$BASEDN"
|
DN="cn=Mark Elliot,ou=Alumni Association,ou=People,$BASEDN"
|
||||||
echo "Comparing \"$DN\" on port $P..."
|
echo "Comparing \"$DN\" on port $P..."
|
||||||
$LDAPCOMPARE -h $LOCALHOST -p $P "$DN" "cn:Mark Elliot"
|
$LDAPCOMPARE -h $LOCALHOST -p $P "$DN" "cn:Mark Elliot" \
|
||||||
> $TESTOUT 2>&1
|
> $TESTOUT 2>&1
|
||||||
|
|
||||||
RC=$?
|
RC=$?
|
||||||
if test $RC != 0 ; then
|
if test $RC != 6 ; then
|
||||||
echo "ldapcompare failed ($RC)!"
|
echo "ldapcompare failed ($RC)!"
|
||||||
test $KILLSERVERS != no && kill -HUP $KILLPIDS
|
test $KILLSERVERS != no && kill -HUP $KILLPIDS
|
||||||
exit $RC
|
exit $RC
|
||||||
@ -149,11 +149,11 @@ for P in $PORT1 $PORT2 ; do
|
|||||||
|
|
||||||
DN="ou=Other,$BASEDN"
|
DN="ou=Other,$BASEDN"
|
||||||
echo "Comparing \"$DN\" on port $P with manageDSAit control..."
|
echo "Comparing \"$DN\" on port $P with manageDSAit control..."
|
||||||
$LDAPCOMPARE -h $LOCALHOST -p $P -M "$DN" "ou:Other"
|
$LDAPCOMPARE -h $LOCALHOST -p $P -M "$DN" "ou:Other" \
|
||||||
> $TESTOUT 2>&1
|
> $TESTOUT 2>&1
|
||||||
|
|
||||||
RC=$?
|
RC=$?
|
||||||
if test $RC != 0 ; then
|
if test $RC != 6 ; then
|
||||||
echo "ldapcompare failed ($RC)!"
|
echo "ldapcompare failed ($RC)!"
|
||||||
test $KILLSERVERS != no && kill -HUP $KILLPIDS
|
test $KILLSERVERS != no && kill -HUP $KILLPIDS
|
||||||
exit $RC
|
exit $RC
|
||||||
|
Loading…
Reference in New Issue
Block a user