[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#4045) test023-refint & sql-test000-read buglets



Full_Name: Hallvard B Furuseth
Version: HEAD
OS: 
URL: 
Submission from: (NULL) (129.240.186.42)
Submitted by: hallvard


test023 and sql-test000 do

   $LDAPSEARCH ... | grep (or $EGREP_CMD) ...
   $RC=$?
   if test $RC != 0 ; then
	echo "ldapsearch failed ($RC)!"
        ...

This tests the exit status from the last command in the
pipeline instead of from ldapsearch.  They should redirect
LDAPSEARCH to a file and then grep that.


test023 also compares the $SEARCHOUT file with itself:
    $CMP $SEARCHOUT $SEARCHOUT > $CMPOUT
This usually succeeds:-)