Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r1565 - trunk: . fsvs/tests

fsvs
Discussion topic

Hide all messages in topic

All messages in topic

svn commit: r1565 - trunk: . fsvs/tests

Author pmarek
Full name P.Marek
Date 2008-03-24 23:22:47 PDT
Message Author: pmarek
Date: 2008-03-24 23:22:46-0700
New Revision: 1565

Modified:
   trunk/ (props changed)
   trunk/fsvs/tests/027_recursive

Log:
Bit of cleanup in test 027


Modified: trunk/fsvs/tests/027_recursive
Url: http://fsvs.tigris.o​rg/source/browse/fsv​s/trunk/fsvs/tests/0​27_recursive?view=di​ff&rev=1565&​p1=trunk/fsvs/tests/​027_recursive&p2​=trunk/fsvs/tests/02​7_recursive&r1=1​564&r2=1565
====================​====================​====================​==================
--- trunk/fsvs/tests/027_recursive (original)
+++ trunk/fsvs/tests/027_recursive 2008-03-24 23:22:46-0700
@@ -34,23 +34,22 @@
 
 function check
 {
- cmd=$1
- shift
- msg=$3
- $BINdflt $cmd $1 > $LOGFILE
- if [[ `wc -l < $LOGFILE` -ne $2 ]]
+# Action, Parameter, Nr. of expected lines, Message
+ msg="$4"
+ $BINdflt $1 $2 > $LOGFILE
+ if [[ `wc -l < $LOGFILE` -ne "$3" ]]
     then
         $ERROR "$msg failed - wrong number of output lines."
     fi
 
- shift 3
+ shift 4
     while [[ "$1" != "" ]]
     do
         if [[ `grep $1 < $LOGFILE | wc -l` -ne $2 ]]
         then
             $ERROR_NB "$msg"
             cat $LOGFILE
- $ERROR "expected $2 $1."
+ $ERROR "expected $2*$1."
         fi
         shift 2
     done
Messages per page: