Skip to content

Commit 1892517

Browse files
Steven Rostedtrostedt
authored andcommitted
ktest: Fix breakage from change of oldnoconfig to olddefconfig
Commit fb16d89 "kconfig: replace 'oldnoconfig' with 'olddefconfig', and keep the old name", changed ktest's default config update from oldnoconfig to olddefconfig without adding oldnoconfig as a backup. The make oldnoconfig works much better than its backup of: yes '' | make oldconfig But due to this change, and the fact that ktest is used to build lots of older kernels (and for bisects), it forgoes the oldnoconfig completely. Cc: Adam Lee <adam8157@gmail.com> Cc: Michal Marek <mmarek@suse.cz> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
1 parent 7786954 commit 1892517

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

‎tools/testing/ktest/ktest.pl‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1966,10 +1966,14 @@ sub make_oldconfig {
19661966

19671967
if (!run_command "$make olddefconfig") {
19681968
# Perhaps olddefconfig doesn't exist in this version of the kernel
1969-
# try a yes '' | oldconfig
1970-
doprint "olddefconfig failed, trying yes '' | make oldconfig\n";
1971-
run_command "yes '' | $make oldconfig" or
1972-
dodie "failed make config oldconfig";
1969+
# try oldnoconfig
1970+
doprint "olddefconfig failed, trying make oldnoconfig\n";
1971+
if (!run_command "$make oldnoconfig") {
1972+
doprint "oldnoconfig failed, trying yes '' | make oldconfig\n";
1973+
# try a yes '' | oldconfig
1974+
run_command "yes '' | $make oldconfig" or
1975+
dodie "failed make config oldconfig";
1976+
}
19731977
}
19741978
}
19751979

0 commit comments

Comments
 (0)