xfstests: Show duration of current test
authorLukas Czerner <lczerner@redhat.com>
Thu, 8 Jul 2010 15:23:52 +0000 (15:23 +0000)
committerAlex Elder <aelder@sgi.com>
Mon, 30 Aug 2010 15:11:56 +0000 (10:11 -0500)
It may be useful to compare both times, last and current, in the
xfstests output.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
check

diff --git a/check b/check
index 560ac7bf735036617182104dae8a6463865e571c..f7920097d1836471b0e7f6f15de7d3593b86571b 100755 (executable)
--- a/check
+++ b/check
@@ -275,13 +275,14 @@ do
            else
                if diff $seq.out $tmp.out >/dev/null 2>&1
                then
-                   echo ""
                    if $err
                    then
                        :
                    else
                        echo "$seq `expr $stop - $start`" >>$tmp.time
+                       echo -n " `expr $stop - $start`s"
                    fi
+                   echo ""
                else
                    echo " - output mismatch (see $seq.out.bad)"
                    mv $tmp.out $seq.out.bad