[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20240315-ktest-v2-1-c5c20a75f6a3@marliere.net>
Date: Fri, 15 Mar 2024 12:28:08 -0300
From: "Ricardo B. Marliere" <ricardo@...liere.net>
To: Steven Rostedt <rostedt@...dmis.org>,
John Hawley <warthog9@...lescrag.net>
Cc: linux-kernel@...r.kernel.org,
"Ricardo B. Marliere" <ricardo@...liere.net>
Subject: [PATCH v2] 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.
Signed-off-by: Ricardo B. Marliere <ricardo@...liere.net>
---
Changes in v2:
- Fixed the pattern to include EOL (\$), as requested.
- Link to v1: https://lore.kernel.org/r/20240305-ktest-v1-1-5a93b8b17dba@marliere.net
---
tools/testing/ktest/ktest.pl | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl
index 829f5bdfd2e4..24451f8f4291 100755
--- a/tools/testing/ktest/ktest.pl
+++ b/tools/testing/ktest/ktest.pl
@@ -843,6 +843,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
---
base-commit: fe46a7dd189e25604716c03576d05ac8a5209743
change-id: 20240305-ktest-9e4452112c93
Best regards,
--
Ricardo B. Marliere <ricardo@...liere.net>
Powered by blists - more mailing lists