ktest: Make default build option oldconfig not randconfig
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 13 Nov 2019 18:36:24 +0000 (13:36 -0500)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Mon, 9 Mar 2020 20:04:30 +0000 (16:04 -0400)
For the last time, I screwed up my ktest config file, and the build went
into the default "randconfig", blowing away the .config that I had set up.
The reason for the default randconfig was because when this was first
written, I wanted to do a bunch of randconfigs. But as time progressed,
ktest isn't about randconfig anymore, and because randconfig destroys the
config in the build directory, it's a dangerous default to have. Use
oldconfig as the default.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
tools/testing/ktest/ktest.pl
tools/testing/ktest/sample.conf

index 220d04f958a628948d62409afc2c3c2ce35d874b..6a605ba75dd6faa55204c146339a417b18514e8b 100755 (executable)
@@ -30,7 +30,7 @@ my %default = (
     "EMAIL_WHEN_STARTED"       => 0,
     "NUM_TESTS"                        => 1,
     "TEST_TYPE"                        => "build",
-    "BUILD_TYPE"               => "randconfig",
+    "BUILD_TYPE"               => "oldconfig",
     "MAKE_CMD"                 => "make",
     "CLOSE_CONSOLE_SIGNAL"     => "INT",
     "TIMEOUT"                  => 120,
index 10af348196427bf5e45ce6d04ad188eae4996907..27666b8007edbb596085ebfb49441be8ad160c2e 100644 (file)
 #TEST = ssh user@machine /root/run_test
 
 # The build type is any make config type or special command
-#  (default randconfig)
+#  (default oldconfig)
 #   nobuild - skip the clean and build step
 #   useconfig:/path/to/config - use the given config and run
 #              oldconfig on it.