Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294660
b: refs/heads/master
c: 648a182
h: refs/heads/master
v: v3
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Mar 21, 2012
1 parent 8b344a6 commit 21add9d
Show file tree
Hide file tree
Showing 2 changed files with 11 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: 769df641cc1b870c0d7f95d6433416bf2c6c2b5e
refs/heads/master: 648a182c615272f01b5cda01dc87a16de9f695bb
12 changes: 10 additions & 2 deletions trunk/tools/testing/ktest/ktest.pl
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
my $switch_to_good;
my $switch_to_test;
my $poweroff_on_error;
my $reboot_on_success;
my $die_on_failure;
my $powercycle_after_reboot;
my $poweroff_after_halt;
Expand Down Expand Up @@ -213,6 +214,7 @@
"SWITCH_TO_GOOD" => \$switch_to_good,
"SWITCH_TO_TEST" => \$switch_to_test,
"POWEROFF_ON_ERROR" => \$poweroff_on_error,
"REBOOT_ON_SUCCESS" => \$reboot_on_success,
"DIE_ON_FAILURE" => \$die_on_failure,
"POWER_OFF" => \$power_off,
"POWERCYCLE_AFTER_REBOOT" => \$powercycle_after_reboot,
Expand Down Expand Up @@ -3552,8 +3554,10 @@ 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;
}

if ($test_type eq "bisect") {
bisect $i;
Expand Down Expand Up @@ -3598,8 +3602,12 @@ sub set_test_option {
halt;
} elsif ($opt{"REBOOT_ON_SUCCESS"} && !do_not_reboot) {
reboot_to_good;
} elsif (defined($switch_to_good)) {
# still need to get to the good kernel
run_command $switch_to_good;
}


doprint "\n $successes of $opt{NUM_TESTS} tests were successful\n\n";

exit 0;

0 comments on commit 21add9d

Please sign in to comment.