From 13e31eaecab198dca116c0205aeb3ec4630efa7b Mon Sep 17 00:00:00 2001 From: Alejo Sanchez Date: Thu, 25 May 2023 18:57:00 +0200 Subject: [PATCH] test.py: show mode and suite name when listing tests For --list, show also mode and suite name. Signed-off-by: Alejo Sanchez Closes #14729 --- test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test.py b/test.py index 70d4de90a5..6cdef61422 100755 --- a/test.py +++ b/test.py @@ -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()