aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/ktest/ktest.pl')
-rwxr-xr-xtools/testing/ktest/ktest.pl12
1 files changed, 8 insertions, 4 deletions
diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl
index 067337bbce7b..6b1e0c5edc5b 100755
--- a/tools/testing/ktest/ktest.pl
+++ b/tools/testing/ktest/ktest.pl
@@ -1966,10 +1966,14 @@ sub make_oldconfig {
1966 1966
1967 if (!run_command "$make olddefconfig") { 1967 if (!run_command "$make olddefconfig") {
1968 # Perhaps olddefconfig doesn't exist in this version of the kernel 1968 # Perhaps olddefconfig doesn't exist in this version of the kernel
1969 # try a yes '' | oldconfig 1969 # try oldnoconfig
1970 doprint "olddefconfig failed, trying yes '' | make oldconfig\n"; 1970 doprint "olddefconfig failed, trying make oldnoconfig\n";
1971 run_command "yes '' | $make oldconfig" or 1971 if (!run_command "$make oldnoconfig") {
1972 dodie "failed make config oldconfig"; 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 }
1973 } 1977 }
1974} 1978}
1975 1979