diff options
author | Max Reitz <mreitz@redhat.com> | 2019-06-13 20:37:27 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2019-06-18 16:41:09 +0200 |
commit | 835d689d257ddc8893febf6e93747c201614d078 (patch) | |
tree | 77debacf9c9dc73679a31577fccde22c0dac045d /tests/qemu-iotests/check | |
parent | cdfaa2720f4a09e5254868bd1f6e33f3e9eae76f (diff) |
iotests: Hide timestamps for skipped tests
Currently, the "thistime" variable is not reinitialized on every loop
iteration. This leads to tests that do not yield a run time (because
they failed or were skipped) printing the run time of the previous test
that did. Fix that by reinitializing "thistime" for every test.
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/check')
-rwxr-xr-x | tests/qemu-iotests/check | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/qemu-iotests/check b/tests/qemu-iotests/check index 44ebf24080..f925606cc5 100755 --- a/tests/qemu-iotests/check +++ b/tests/qemu-iotests/check @@ -773,6 +773,7 @@ do printdiff=false # show diff to reference output? status="" # test result summary results="" # test result details + thistime="" # time the test took if [ -n "$TESTS_REMAINING_LOG" ] ; then sed -e "s/$seq//" -e 's/ / /' -e 's/^ *//' $TESTS_REMAINING_LOG > $TESTS_REMAINING_LOG.tmp |