aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/ktest/ktest.pl
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/ktest/ktest.pl')
-rwxr-xr-xtools/testing/ktest/ktest.pl11
1 files changed, 3 insertions, 8 deletions
diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl
index f360cbdbf00f..f81c8b3a39a8 100755
--- a/tools/testing/ktest/ktest.pl
+++ b/tools/testing/ktest/ktest.pl
@@ -485,8 +485,6 @@ sub get_ktest_configs {
485 485
486 if ($rtype eq "grub") { 486 if ($rtype eq "grub") {
487 get_ktest_config("GRUB_MENU"); 487 get_ktest_config("GRUB_MENU");
488 } else {
489 get_ktest_config("REBOOT_SCRIPT");
490 } 488 }
491} 489}
492 490
@@ -1430,11 +1428,10 @@ sub reboot_to {
1430 1428
1431 if ($reboot_type eq "grub") { 1429 if ($reboot_type eq "grub") {
1432 run_ssh "'(echo \"savedefault --default=$grub_number --once\" | grub --batch)'"; 1430 run_ssh "'(echo \"savedefault --default=$grub_number --once\" | grub --batch)'";
1433 reboot; 1431 } elsif (defined $reboot_script) {
1434 return; 1432 run_command "$reboot_script";
1435 } 1433 }
1436 1434 reboot;
1437 run_command "$reboot_script";
1438} 1435}
1439 1436
1440sub get_sha1 { 1437sub get_sha1 {
@@ -3479,8 +3476,6 @@ for (my $i = 1; $i <= $opt{"NUM_TESTS"}; $i++) {
3479 $target = "$ssh_user\@$machine"; 3476 $target = "$ssh_user\@$machine";
3480 if ($reboot_type eq "grub") { 3477 if ($reboot_type eq "grub") {
3481 dodie "GRUB_MENU not defined" if (!defined($grub_menu)); 3478 dodie "GRUB_MENU not defined" if (!defined($grub_menu));
3482 } elsif (!defined($reboot_script)) {
3483 dodie "REBOOT_SCRIPT not defined"
3484 } 3479 }
3485 } 3480 }
3486 3481