ktest.pl: Detect if a config-bisect was interrupted
If a config-bisect was interrupted, then allow the user to continue, or restart a new config-bisect. Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
This commit is contained in:
parent
40667fb5fd
commit
5a57299a1f
|
@ -3215,6 +3215,20 @@ sub config_bisect {
|
|||
my %bad_configs;
|
||||
my %tmp_configs;
|
||||
|
||||
if (-f "$tmpdir/good_config.tmp" || -f "$tmpdir/bad_config.tmp") {
|
||||
if (read_yn "Interrupted config-bisect. Continue (n - will start new)?") {
|
||||
if (-f "$tmpdir/good_config.tmp") {
|
||||
$good_config = "$tmpdir/good_config.tmp";
|
||||
} else {
|
||||
$good_config = "$tmpdir/good_config";
|
||||
}
|
||||
if (-f "$tmpdir/bad_config.tmp") {
|
||||
$bad_config = "$tmpdir/bad_config.tmp";
|
||||
} else {
|
||||
$bad_config = "$tmpdir/bad_config";
|
||||
}
|
||||
}
|
||||
}
|
||||
doprint "Run good configs through make oldconfig\n";
|
||||
assign_configs \%tmp_configs, $good_config;
|
||||
create_config "$good_config", \%tmp_configs;
|
||||
|
|
Loading…
Reference in New Issue