Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285901
b: refs/heads/master
c: 96f6a0d
h: refs/heads/master
i:
  285899: cf787f9
v: v3
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Jan 5, 2012
1 parent 9043f1f commit a0b137c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 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: c2857cb4a855aba0c3f826bcd0dfef72abb0995b
refs/heads/master: 96f6a0df19238fceed77ddfc33bb2d6a4e1b9be6
11 changes: 3 additions & 8 deletions trunk/tools/testing/ktest/ktest.pl
Original file line number Diff line number Diff line change
Expand Up @@ -485,8 +485,6 @@ sub get_ktest_configs {

if ($rtype eq "grub") {
get_ktest_config("GRUB_MENU");
} else {
get_ktest_config("REBOOT_SCRIPT");
}
}

Expand Down Expand Up @@ -1430,11 +1428,10 @@ sub reboot_to {

if ($reboot_type eq "grub") {
run_ssh "'(echo \"savedefault --default=$grub_number --once\" | grub --batch)'";
reboot;
return;
} elsif (defined $reboot_script) {
run_command "$reboot_script";
}

run_command "$reboot_script";
reboot;
}

sub get_sha1 {
Expand Down Expand Up @@ -3479,8 +3476,6 @@ sub set_test_option {
$target = "$ssh_user\@$machine";
if ($reboot_type eq "grub") {
dodie "GRUB_MENU not defined" if (!defined($grub_menu));
} elsif (!defined($reboot_script)) {
dodie "REBOOT_SCRIPT not defined"
}
}

Expand Down
5 changes: 4 additions & 1 deletion trunk/tools/testing/ktest/sample.conf
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,10 @@
#GRUB_MENU = Test Kernel

# A script to reboot the target into the test kernel
# (Only mandatory if REBOOT_TYPE = script)
# This and SWITCH_TO_TEST are about the same, except
# SWITCH_TO_TEST is run even for REBOOT_TYPE = grub.
# This may be left undefined.
# (default undefined)
#REBOOT_SCRIPT =

#### Optional Config Options (all have defaults) ####
Expand Down

0 comments on commit a0b137c

Please sign in to comment.