]> Git Repo - J-linux.git/commitdiff
ktest: force $buildonly = 1 for 'make_warnings_file' test type
authorRicardo B. Marliere <[email protected]>
Fri, 15 Mar 2024 15:28:08 +0000 (12:28 -0300)
committerSteven Rostedt <[email protected]>
Fri, 15 Mar 2024 16:36:19 +0000 (12:36 -0400)
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/[email protected]
Cc: John Hawley <[email protected]>
Signed-off-by: Ricardo B. Marliere <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
tools/testing/ktest/ktest.pl

index 4383729e0fc271f2ae7707f5fc5c05f4aa62b90b..eb31cd9c977bfb09324ae28ed731809fc912cc16 100755 (executable)
@@ -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
This page took 0.061525 seconds and 4 git commands to generate.