summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDaniel Zahka <daniel.zahka@gmail.com>2025-12-16 06:21:35 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-01-08 10:16:45 +0100
commit018071d06c3b1dd09adf8f5d6dffbc7b275b10d3 (patch)
tree63682c3fecf54023ba7d4ba4fd4116120513bb1e /tools
parent6602403b2fa19d9df89d63323bce5ffe335ae0bf (diff)
downloadlinux-018071d06c3b1dd09adf8f5d6dffbc7b275b10d3.tar.gz
linux-018071d06c3b1dd09adf8f5d6dffbc7b275b10d3.tar.bz2
linux-018071d06c3b1dd09adf8f5d6dffbc7b275b10d3.zip
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>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/testing/selftests/drivers/net/psp.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/testing/selftests/drivers/net/psp.py b/tools/testing/selftests/drivers/net/psp.py
index 4ae7a785ff10..827e04cc8423 100755
--- a/tools/testing/selftests/drivers/net/psp.py
+++ b/tools/testing/selftests/drivers/net/psp.py
@@ -560,8 +560,9 @@ def psp_ip_ver_test_builder(name, test_func, psp_ver, ipver):
"""Build test cases for each combo of PSP version and IP version"""
def test_case(cfg):
cfg.require_ipver(ipver)
- test_case.__name__ = f"{name}_v{psp_ver}_ip{ipver}"
test_func(cfg, psp_ver, ipver)
+
+ test_case.__name__ = f"{name}_v{psp_ver}_ip{ipver}"
return test_case