]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ktest.pl: Add -D option to override options
authorSteven Rostedt <rostedt@goodmis.org>
Fri, 18 Jul 2025 20:18:41 +0000 (16:18 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 21 Jul 2025 20:31:04 +0000 (16:31 -0400)
commit23b772c15f5b39fb2c27b386946232769e4dcc32
treed79798bea408c91bd267dba809e7115205b6edb5
parent89be9a83ccf1f88522317ce02f854f30d6115c41
ktest.pl: Add -D option to override options

Add -D option that lets the user override options in the config.

For instance, if the config has: BUILD_NOCLEAN=1 which prevents mrproper
from being called before builds, and the user wants to call it once. The
user can run:

  ktest -D BUILD_NOCLEAN=0 config

And the default "BUILD_NOCLEAN" options will be disabled.

If the user wants to change the second test to do a build and not boot,
the user can run:

  ktest -D 'TEST_TYPE[2]=build' config

Where the '[#]' is for the test to assign the variable for. In the above
example, it will happen on test 2.

Cc: "John Warthog9 Hawley" <warthog9@kernel.org>
Cc: Dhaval Giani <dhaval.giani@gmail.com>
Cc: Greg KH <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/20250718202053.231478909@kernel.org
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
tools/testing/ktest/ktest.pl