diff mbox

check: print elapsed time even for failed tests

Message ID 20170824131557.32342-1-dsterba@suse.com (mailing list archive)
State New, archived
Headers show

Commit Message

David Sterba Aug. 24, 2017, 1:15 p.m. UTC
Sometimes it's useful to see how long the test runs.  The time is
calculated the same way as in the normal case but the time is not stored
in the $tmp.time file.

Signed-off-by: David Sterba <dsterba@suse.com>
---
 check | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/check b/check
index f8db3cd6dfab..f3a1b72e4b2b 100755
--- a/check
+++ b/check
@@ -755,7 +755,7 @@  for section in $HOST_OPTIONS_SECTIONS; do
 			    fi
 			    echo ""
 			else
-			    echo " - output mismatch (see $seqres.out.bad)"
+			    echo " `expr $stop - $start`s - output mismatch (see $seqres.out.bad)"
 			    mv $tmp.out $seqres.out.bad
 			    $diff $seq.out $seqres.out.bad | {
 				if test "$DIFF_LENGTH" -le 0; then