test.py: show mode and suite name when listing tests

For --list, show also mode and suite name.

Signed-off-by: Alejo Sanchez <alejo.sanchez@scylladb.com>

Closes #14729
This commit is contained in:
Alejo Sanchez
2023-05-25 18:57:00 +02:00
committed by Pavel Emelyanov
parent b3cb611be7
commit 13e31eaeca

View File

@@ -1494,7 +1494,8 @@ async def main() -> int:
await find_tests(options)
if options.list_tests:
print('\n'.join([t.name for t in TestSuite.all_tests()]))
print('\n'.join([f"{t.suite.mode:<8} {type(t.suite).__name__[:-9]:<11} {t.name}"
for t in TestSuite.all_tests()]))
return 0
signaled = asyncio.Event()