From 2cd64e11936fb12102b2265efd3094ed1842ef39 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 7 Sep 2011 23:49:41 -0700 Subject: [PATCH] Print loop counter on failure --- tests/run.in | 3 +++ 1 file changed, 3 insertions(+) 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` -- 2.39.5