test: remove unnecessary lambda wrapper in list_tests

Pass show_test_info directly to map() instead of wrapping it
in a redundant lambda.

Assisted-by: Claude Code (claude-opus-4-6)
Signed-off-by: Adrian Reber <areber@redhat.com>
This commit is contained in:
Adrian Reber 2026-06-17 12:38:47 +00:00 committed by Andrei Vagin
parent 6233eaa5f0
commit a666df2b65

View file

@ -2606,7 +2606,7 @@ def list_tests(opts):
tlist = all_tests(opts)
if opts['info']:
print(sti_fmt % ('Name', 'Flavors', 'Flags'))
tlist = map(lambda x: show_test_info(x), tlist)
tlist = map(show_test_info, tlist)
print('\n'.join(tlist))