]> xenbits.xensource.com Git - people/dariof/qemu-xen.git/commitdiff
iotests: Hide timestamps for skipped tests
authorMax Reitz <mreitz@redhat.com>
Thu, 13 Jun 2019 18:37:27 +0000 (20:37 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 18 Jun 2019 14:41:09 +0000 (16:41 +0200)
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>
tests/qemu-iotests/check

index 44ebf2408009aa274b83dbf9a68c93310ee3493d..f925606cc525f725b6c7fe6cc62c238740abea37 100755 (executable)
@@ -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