]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - queue-6.1/ktest-force-buildonly-1-for-make_warnings_file-test-.patch
Fixes for 6.1
[thirdparty/kernel/stable-queue.git] / queue-6.1 / ktest-force-buildonly-1-for-make_warnings_file-test-.patch
1 From 48e093164699d121ac5dd6859df8138d865ad528 Mon Sep 17 00:00:00 2001
2 From: Sasha Levin <sashal@kernel.org>
3 Date: Fri, 15 Mar 2024 12:28:08 -0300
4 Subject: ktest: force $buildonly = 1 for 'make_warnings_file' test type
5
6 From: Ricardo B. Marliere <ricardo@marliere.net>
7
8 [ Upstream commit 07283c1873a4d0eaa0e822536881bfdaea853910 ]
9
10 The test type "make_warnings_file" should have no mandatory configuration
11 parameters other than the ones required by the "build" test type, because
12 its purpose is to create a file with build warnings that may or may not be
13 used by other subsequent tests. Currently, the only way to use it as a
14 stand-alone test is by setting POWER_CYCLE, CONSOLE, SSH_USER,
15 BUILD_TARGET, TARGET_IMAGE, REBOOT_TYPE and GRUB_MENU.
16
17 Link: https://lkml.kernel.org/r/20240315-ktest-v2-1-c5c20a75f6a3@marliere.net
18
19 Cc: John Hawley <warthog9@eaglescrag.net>
20 Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
21 Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
22 Signed-off-by: Sasha Levin <sashal@kernel.org>
23 ---
24 tools/testing/ktest/ktest.pl | 1 +
25 1 file changed, 1 insertion(+)
26
27 diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl
28 index e6c381498e632..449e45bd69665 100755
29 --- a/tools/testing/ktest/ktest.pl
30 +++ b/tools/testing/ktest/ktest.pl
31 @@ -836,6 +836,7 @@ sub set_value {
32 if ($lvalue =~ /^(TEST|BISECT|CONFIG_BISECT)_TYPE(\[.*\])?$/ &&
33 $prvalue !~ /^(config_|)bisect$/ &&
34 $prvalue !~ /^build$/ &&
35 + $prvalue !~ /^make_warnings_file$/ &&
36 $buildonly) {
37
38 # Note if a test is something other than build, then we
39 --
40 2.43.0
41