Two bug fixes in ktest to be merged.
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAABAgAGBQJPoILhAAoJEIy3vGnGbaoAYv8QAM51OcJQHH6cTrV9PJ704hNw J/EdZ0yGNClsNGNclhSJBgeyZrOenvJs5gV+RcCFQzSYIacbF+0idwTw2odq/00h jCJrfdHEFN+v94FnmYMEjH6tAzfHKAv9nQ/vL7vpV9s1CeGFJOwDObxazJVs+axA E/190qbpsfDw9VQ8tRVc9/wbf8lkWAzn9bS8+kdM0usUOuYvSWGeR5s2XUDHiZTr t1moVVk5fwcQjYK3+CrUiVIdffPx7Wdl+0au9FLhk4gIlJuKq3G+W+EbmzAedWjS TM85TIgl+Qb4F/pPlUP1AWCOtHAs4B0svBl9kEdIh45HPOMiCOdp3S/n5cQhEUnE iOavOeOZmntgVnPvTq4QP1vipvsAkrMp1HpGF+XIiMS+y9gcuSVJ1o+WFTKdTtqP aeRlFG4TMekSTZI5uddhazwLCUmHkXkI7xm4WGtDwF5cZt7IPt0XPld2KbvO+u8L BrqipM9c3Om8N5atgxZBNzAgC4ieAAdapOeuHQY7+Gn31emNFp9WPxWHfGCTFcAb rmyaw3qHjrdLgHQcJQn/ruodQuDagTfP2KNxNayibUzpBzH/9YwzCgIX0mAPc9tC hl3s0SJAC3Ry9diTsuMvSEmQ+aZHcz1/7Tu8x2+p1KVYoJJUvULrE1oWjkG6lo2P 2tLSVvxUmy1pU9Q2gYgx =BNz+ -----END PGP SIGNATURE----- Merge tag 'ktest-for-v3.4-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-ktest Pull two bug fixes in ktest from Steven Rostedt. * tag 'ktest-for-v3.4-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-ktest: ktest: Fix reboot on success stopping all reboots ktest.pl: Fix combined usage of BISECT_REVERSE and BISECT_SKIP
This commit is contained in:
commit
b821861b90
|
@ -183,6 +183,9 @@ my %force_config;
|
|||
# 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,
|
||||
|
@ -2192,7 +2195,7 @@ sub run_bisect {
|
|||
}
|
||||
|
||||
# Are we looking for where it worked, not failed?
|
||||
if ($reverse_bisect) {
|
||||
if ($reverse_bisect && $ret >= 0) {
|
||||
$ret = !$ret;
|
||||
}
|
||||
|
||||
|
@ -3469,6 +3472,7 @@ for (my $i = 1; $i <= $opt{"NUM_TESTS"}; $i++) {
|
|||
|
||||
# Do not reboot on failing test options
|
||||
$no_reboot = 1;
|
||||
$reboot_success = 0;
|
||||
|
||||
$iteration = $i;
|
||||
|
||||
|
@ -3554,9 +3558,11 @@ for (my $i = 1; $i <= $opt{"NUM_TESTS"}; $i++) {
|
|||
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") {
|
||||
|
@ -3600,7 +3606,7 @@ for (my $i = 1; $i <= $opt{"NUM_TESTS"}; $i++) {
|
|||
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue