Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 275167
b: refs/heads/master
c: eaa1fe2
h: refs/heads/master
i:
  275165: 48538d1
  275163: e4e4a7c
  275159: 7c3e307
  275151: b4178b7
  275135: bfd3852
v: v3
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Oct 17, 2011
1 parent efe739a commit 4baf1ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2728be418db65aa873ee354168b56f028845e956
refs/heads/master: eaa1fe25ea79e94c6727a67baaca3da0791da5de
5 changes: 4 additions & 1 deletion trunk/tools/testing/ktest/ktest.pl
Original file line number Diff line number Diff line change
Expand Up @@ -862,9 +862,12 @@ sub get_grub_index {
open(IN, "$ssh_grub |")
or die "unable to get menu.lst";

my $found = 0;

while (<IN>) {
if (/^\s*title\s+$grub_menu\s*$/) {
$grub_number++;
$found = 1;
last;
} elsif (/^\s*title\s/) {
$grub_number++;
Expand All @@ -873,7 +876,7 @@ sub get_grub_index {
close(IN);

die "Could not find '$grub_menu' in /boot/grub/menu on $machine"
if ($grub_number < 0);
if (!$found);
doprint "$grub_number\n";
}

Expand Down

0 comments on commit 4baf1ed

Please sign in to comment.