]> git.sur5r.net Git - openldap/commitdiff
Print loop counter on failure
authorHoward Chu <hyc@openldap.org>
Thu, 8 Sep 2011 06:49:41 +0000 (23:49 -0700)
committerHoward Chu <hyc@openldap.org>
Thu, 8 Sep 2011 06:49:41 +0000 (23:49 -0700)
tests/run.in

index ebaae6173fc7ea05e60eb8c8dca3b3e55e5631d3..099b7c1c5e1bdc027720c892b6d9324f5938987e 100644 (file)
@@ -257,6 +257,9 @@ while [ $COUNTER -le $LOOP ]; do
        fi
 
        if [ $RC -ne 0 ]; then
+               if [ $LOOP -gt 1 ]; then
+                       echo "Failed after $COUNTER of $LOOP iterations"
+               fi
                exit $RC
        else
                COUNTER=`expr $COUNTER + 1`