Skip to content

Commit

Permalink
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
Browse files Browse the repository at this point in the history
…/git/rostedt/linux-2.6-ktest

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-ktest:
  ktest: Ignore unset values of the minconfig in config_bisect
  ktest: Fix result of rebooting the kernel
  ktest: Fix off-by-one in config bisect result
  • Loading branch information
torvalds committed Jun 3, 2011
2 parents cd4ecf8 + 9bf7174 commit 9a44fde
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/testing/ktest/ktest.pl
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ sub wait_for_input

sub reboot_to {
if ($reboot_type eq "grub") {
run_ssh "'(echo \"savedefault --default=$grub_number --once\" | grub --batch; reboot)'";
run_ssh "'(echo \"savedefault --default=$grub_number --once\" | grub --batch && reboot)'";
return;
}

Expand Down Expand Up @@ -1480,7 +1480,7 @@ sub process_config_ignore {
or dodie "Failed to read $config";

while (<IN>) {
if (/^(.*?(CONFIG\S*)(=.*| is not set))/) {
if (/^((CONFIG\S*)=.*)/) {
$config_ignore{$2} = $1;
}
}
Expand Down Expand Up @@ -1638,7 +1638,7 @@ sub run_config_bisect {
if (!$found) {
# try the other half
doprint "Top half produced no set configs, trying bottom half\n";
@tophalf = @start_list[$half .. $#start_list];
@tophalf = @start_list[$half + 1 .. $#start_list];
create_config @tophalf;
read_current_config \%current_config;
foreach my $config (@tophalf) {
Expand Down Expand Up @@ -1690,7 +1690,7 @@ sub run_config_bisect {
# remove half the configs we are looking at and see if
# they are good.
$half = int($#start_list / 2);
} while ($half > 0);
} while ($#start_list > 0);

# we found a single config, try it again unless we are running manually

Expand Down

0 comments on commit 9a44fde

Please sign in to comment.