iotests/testrunner.py: refactor test_field_width
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Fri, 10 Dec 2021 20:14:50 +0000 (21:14 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 14 Jan 2022 11:03:16 +0000 (12:03 +0100)
commite5e748739562268ef4063ee77bf53ad7040b25c7
tree4073b6fcae69cd1a15783f4490738cd71389af8a
parent64631f368115a332bdca32553a430568ecc7761d
iotests/testrunner.py: refactor test_field_width

A lot of Optional[] types doesn't make code beautiful.
test_field_width defaults to 8, but that is never used in the code.

More over, if we want some default behavior for single call of
test_run(), it should just print the whole test name, not limiting or
expanding its width, so 8 is bad default.

So, just drop the default as unused for now.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20211210201450.101576-1-vsementsov@virtuozzo.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/testrunner.py