selftests: kselftest_harness: generate test name once
authorJakub Kicinski <kuba@kernel.org>
Thu, 29 Feb 2024 00:59:11 +0000 (16:59 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Mar 2024 10:30:28 +0000 (10:30 +0000)
commit38c957f07038278b98af7223a411c0daa54bd1b4
tree8323091112b704f38d39f46e1600c5048eb1c759
parenta724707976b0bcf5eb6f4637dead0cc380659940
selftests: kselftest_harness: generate test name once

Since we added variant support generating full test case
name takes 4 string arguments. We're about to need it
in another two places. Stop the duplication and print
once into a temporary buffer.

Suggested-by: Jakub Sitnicki <jakub@cloudflare.com>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/kselftest_harness.h