aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/ktest
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/ktest')
-rw-r--r--tools/testing/ktest/ktest.pl7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl
index 9eaf8d05c74..f344fd0d4f2 100644
--- a/tools/testing/ktest/ktest.pl
+++ b/tools/testing/ktest/ktest.pl
@@ -21,6 +21,7 @@ $opt{"SLEEP_TIME"} = 60; # sleep time between tests
21$opt{"BUILD_NOCLEAN"} = 0; 21$opt{"BUILD_NOCLEAN"} = 0;
22$opt{"REBOOT_ON_ERROR"} = 0; 22$opt{"REBOOT_ON_ERROR"} = 0;
23$opt{"POWEROFF_ON_ERROR"} = 0; 23$opt{"POWEROFF_ON_ERROR"} = 0;
24$opt{"REBOOT_ON_SUCCESS"} = 1;
24$opt{"POWEROFF_ON_SUCCESS"} = 0; 25$opt{"POWEROFF_ON_SUCCESS"} = 0;
25$opt{"BUILD_OPTIONS"} = ""; 26$opt{"BUILD_OPTIONS"} = "";
26$opt{"BISECT_SLEEP_TIME"} = 10; # sleep time between bisects 27$opt{"BISECT_SLEEP_TIME"} = 10; # sleep time between bisects
@@ -644,6 +645,10 @@ sub set_build_option {
644for (my $i = 1; $i <= $opt{"NUM_BUILDS"}; $i++) { 645for (my $i = 1; $i <= $opt{"NUM_BUILDS"}; $i++) {
645 my $type = "BUILD_TYPE[$i]"; 646 my $type = "BUILD_TYPE[$i]";
646 647
648 if (!defined($opt{$type})) {
649 $opt{$type} = $opt{"DEFAULT_BUILD_TYPE"};
650 }
651
647 $noclean = set_build_option("BUILD_NOCLEAN", $i); 652 $noclean = set_build_option("BUILD_NOCLEAN", $i);
648 $minconfig = set_build_option("MIN_CONFIG", $i); 653 $minconfig = set_build_option("MIN_CONFIG", $i);
649 $run_test = set_build_option("TEST", $i); 654 $run_test = set_build_option("TEST", $i);
@@ -674,7 +679,7 @@ for (my $i = 1; $i <= $opt{"NUM_BUILDS"}; $i++) {
674 679
675if ($opt{"POWEROFF_ON_SUCCESS"}) { 680if ($opt{"POWEROFF_ON_SUCCESS"}) {
676 halt; 681 halt;
677} else { 682} elsif ($opt{"REBOOT_ON_SUCCESS"}) {
678 reboot; 683 reboot;
679} 684}
680 685