iotests: add testrunner.py
commitd74c754c924ca34e90b7c96ce2f5609d82c0e628
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Mon, 25 Jan 2021 18:50:54 +0000 (25 21:50 +0300)
committerKevin Wolf <kwolf@redhat.com>
Wed, 27 Jan 2021 19:53:14 +0000 (27 20:53 +0100)
tree535e4d62541455d3a08d34bf84d636d32a7d3e64
parent2e5a2f57db481f18fcf70be2a36b1417370b8476
iotests: add testrunner.py

Add TestRunner class, which will run tests in a new python iotests
running framework.

There are some differences with current ./check behavior, most
significant are:
- Consider all tests self-executable, just run them, don't run python
  by hand.
- Elapsed time is cached in json file
- Elapsed time precision increased a bit
- Instead of using "diff -w" which ignores all whitespace differences,
  manually strip whitespace at line end then use python difflib, which
  no longer ignores spacing mid-line

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20210125185056.129513-5-vsementsov@virtuozzo.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/testrunner.py [new file with mode: 0644]