]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: drv-net: psp: fix templated test names in psp_ip_ver_test_builder()
authorDaniel Zahka <daniel.zahka@gmail.com>
Tue, 16 Dec 2025 14:21:35 +0000 (06:21 -0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 23 Dec 2025 11:05:04 +0000 (12:05 +0100)
commitd52668cac3f98f86aa1fb238dec1320c80fbefea
treebc550b47eb4d7384a8a97c0e0a7f07b054b00bed
parentdf60c332caf95d70f967aeace826e7e2f0847361
selftests: drv-net: psp: fix templated test names in psp_ip_ver_test_builder()

test_case will only take on its formatted name after it is called by
the test runner. Move the assignment to test_case.__name__ to when the
test_case is constructed, not called.

Fixes: 8f90dc6e417a ("selftests: drv-net: psp: add basic data transfer and key rotation tests")
Signed-off-by: Daniel Zahka <daniel.zahka@gmail.com>
Link: https://patch.msgid.link/20251216-psp-test-fix-v1-1-3b5a6dde186f@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/testing/selftests/drivers/net/psp.py