From: Howard Chu Date: Thu, 8 Sep 2011 06:49:41 +0000 (-0700) Subject: Print loop counter on failure X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2cd64e11936fb12102b2265efd3094ed1842ef39;p=openldap Print loop counter on failure --- diff --git a/tests/run.in b/tests/run.in index ebaae6173f..099b7c1c5e 100644 --- a/tests/run.in +++ b/tests/run.in @@ -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`