From: Howard Chu Date: Thu, 8 Sep 2011 06:49:41 +0000 (-0700) Subject: Print loop counter on failure X-Git-Tag: OPENLDAP_REL_ENG_2_4_27~73 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cac0191f54a4f386dba876dc967feb5582438363;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`