[PATCH] check: print elapsed time even for failed tests

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



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@xxxxxxxx>
---
 check | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
-- 
2.14.0

--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux