From: Pierangelo Masarati Date: Wed, 5 Feb 2003 21:20:04 +0000 (+0000) Subject: ignore blanks in subtree diff X-Git-Tag: NO_SLAP_OP_BLOCKS~428 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=045fa7dc31c5d222d3e3125811a92cb79db3275d;p=openldap ignore blanks in subtree diff --- diff --git a/tests/scripts/defines.sh b/tests/scripts/defines.sh index 645024ba42..f514d3c6f1 100755 --- a/tests/scripts/defines.sh +++ b/tests/scripts/defines.sh @@ -44,6 +44,7 @@ SLAPINDEX="../servers/slapd/tools/slapindex $LDAP_VERBOSE" unset DIFF_OPTIONS DIFF="diff -iu" CMP="diff -i" +BCMP="diff -iB" CMPOUT=/dev/null SLAPD="../servers/slapd/slapd -s0" SLURPD=../servers/slurpd/slurpd diff --git a/tests/scripts/test011-subtree-repl b/tests/scripts/test011-subtree-repl index ed1a9c10a4..9b7f7a2910 100755 --- a/tests/scripts/test011-subtree-repl +++ b/tests/scripts/test011-subtree-repl @@ -43,7 +43,7 @@ fi # quick hack to check for awk echo "looking for a POSIX compliant awk" -awk -W version >/dev/null 2>&1 +awk -W version >$CMPOUT 2>&1 if test $? != 0 ; then echo "This test requires awk" exit 0 @@ -261,7 +261,7 @@ echo "Stripping subtree entries from master output..." | $STRIPATTR "description" > $SUBFLT2 echo "Comparing master minus subtree and master minus slave..." -$CMP $SUBFLT $SUBFLT2 > $CMPOUT +$BCMP $SUBFLT $SUBFLT2 > $CMPOUT if test $? != 0 ; then echo "test failed - master and slave databases differ"