iotests/testrunner.py: move updating last_elapsed to run_tests
commit1f257b70d143d6c3330e6194bd977483c5f61b9b
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Fri, 3 Dec 2021 12:22:22 +0000 (3 13:22 +0100)
committerHanna Reitz <hreitz@redhat.com>
Wed, 22 Dec 2021 15:29:48 +0000 (22 16:29 +0100)
tree2869649d9361ce66b4c4ea3737fcd306717cb0c7
parent02dd48f8598be6c6be005594c5a6adca147b3a78
iotests/testrunner.py: move updating last_elapsed to run_tests

We are going to use do_run_test() in multiprocessing environment, where
we'll not be able to change original runner object.

Happily, the only thing we change is that last_elapsed and it's simple
to do it in run_tests() instead. All other accesses to self in
do_runt_test() and in run_test() are read-only.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20211203122223.2780098-3-vsementsov@virtuozzo.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Tested-by: John Snow <jsnow@redhat.com>
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
tests/qemu-iotests/testrunner.py