Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299887
b: refs/heads/master
c: 759a3cc
h: refs/heads/master
i:
  299885: 3f5c13b
  299883: 3d6e204
  299879: bbc0e1d
  299871: 283fc4a
v: v3
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed May 1, 2012
1 parent eff7aec commit 0893e09
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 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: 5158ba3ea7fc8c3deafec769a32bc6eb869c3608
refs/heads/master: 759a3cc625e77161ae457459489178dd0921524e
10 changes: 8 additions & 2 deletions trunk/tools/testing/ktest/ktest.pl
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@
# do not force reboots on config problems
my $no_reboot = 1;

# reboot on success
my $reboot_success = 0;

my %option_map = (
"MACHINE" => \$machine,
"SSH_USER" => \$ssh_user,
Expand Down Expand Up @@ -3469,6 +3472,7 @@ sub set_test_option {

# Do not reboot on failing test options
$no_reboot = 1;
$reboot_success = 0;

$iteration = $i;

Expand Down Expand Up @@ -3554,9 +3558,11 @@ sub set_test_option {
die "failed to checkout $checkout";
}

$no_reboot = 0;

# A test may opt to not reboot the box
if ($reboot_on_success) {
$no_reboot = 0;
$reboot_success = 1;
}

if ($test_type eq "bisect") {
Expand Down Expand Up @@ -3600,7 +3606,7 @@ sub set_test_option {

if ($opt{"POWEROFF_ON_SUCCESS"}) {
halt;
} elsif ($opt{"REBOOT_ON_SUCCESS"} && !do_not_reboot) {
} elsif ($opt{"REBOOT_ON_SUCCESS"} && !do_not_reboot && $reboot_success) {
reboot_to_good;
} elsif (defined($switch_to_good)) {
# still need to get to the good kernel
Expand Down

0 comments on commit 0893e09

Please sign in to comment.