]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Jan 2026 09:16:45 +0000 (10:16 +0100)
commit018071d06c3b1dd09adf8f5d6dffbc7b275b10d3
tree63682c3fecf54023ba7d4ba4fd4116120513bb1e
parent6602403b2fa19d9df89d63323bce5ffe335ae0bf
selftests: drv-net: psp: fix templated test names in psp_ip_ver_test_builder()

[ Upstream commit d52668cac3f98f86aa1fb238dec1320c80fbefea ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/drivers/net/psp.py