aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/ktest
diff options
context:
space:
mode:
authorRicardo B. Marliere <ricardo@marliere.net>2024-03-15 12:28:08 -0300
committerSteven Rostedt <rostedt@goodmis.org>2024-03-15 12:36:19 -0400
commit07283c1873a4d0eaa0e822536881bfdaea853910 (patch)
treeeac8e281f8296a07e207027f31b0f6c995bda48c /tools/testing/ktest
parentktest.pl: Process variables within variables (diff)
downloadwireguard-linux-07283c1873a4d0eaa0e822536881bfdaea853910.tar.xz
wireguard-linux-07283c1873a4d0eaa0e822536881bfdaea853910.zip
ktest: force $buildonly = 1 for 'make_warnings_file' test type
The test type "make_warnings_file" should have no mandatory configuration parameters other than the ones required by the "build" test type, because its purpose is to create a file with build warnings that may or may not be used by other subsequent tests. Currently, the only way to use it as a stand-alone test is by setting POWER_CYCLE, CONSOLE, SSH_USER, BUILD_TARGET, TARGET_IMAGE, REBOOT_TYPE and GRUB_MENU. Link: https://lkml.kernel.org/r/20240315-ktest-v2-1-c5c20a75f6a3@marliere.net Cc: John Hawley <warthog9@eaglescrag.net> Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'tools/testing/ktest')
-rwxr-xr-xtools/testing/ktest/ktest.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl
index 4383729e0fc2..eb31cd9c977b 100755
--- a/tools/testing/ktest/ktest.pl
+++ b/tools/testing/ktest/ktest.pl
@@ -847,6 +847,7 @@ sub set_value {
if ($lvalue =~ /^(TEST|BISECT|CONFIG_BISECT)_TYPE(\[.*\])?$/ &&
$prvalue !~ /^(config_|)bisect$/ &&
$prvalue !~ /^build$/ &&
+ $prvalue !~ /^make_warnings_file$/ &&
$buildonly) {
# Note if a test is something other than build, then we