|
@@ -25,6 +25,7 @@ my %default = (
|
|
|
"TEST_TYPE" => "build",
|
|
|
"BUILD_TYPE" => "randconfig",
|
|
|
"MAKE_CMD" => "make",
|
|
|
+ "CLOSE_CONSOLE_SIGNAL" => "INT",
|
|
|
"TIMEOUT" => 120,
|
|
|
"TMP_DIR" => "/tmp/ktest/\${MACHINE}",
|
|
|
"SLEEP_TIME" => 60, # sleep time between tests
|
|
@@ -163,6 +164,7 @@ my $timeout;
|
|
|
my $booted_timeout;
|
|
|
my $detect_triplefault;
|
|
|
my $console;
|
|
|
+my $close_console_signal;
|
|
|
my $reboot_success_line;
|
|
|
my $success_line;
|
|
|
my $stop_after_success;
|
|
@@ -285,6 +287,7 @@ my %option_map = (
|
|
|
"TIMEOUT" => \$timeout,
|
|
|
"BOOTED_TIMEOUT" => \$booted_timeout,
|
|
|
"CONSOLE" => \$console,
|
|
|
+ "CLOSE_CONSOLE_SIGNAL" => \$close_console_signal,
|
|
|
"DETECT_TRIPLE_FAULT" => \$detect_triplefault,
|
|
|
"SUCCESS_LINE" => \$success_line,
|
|
|
"REBOOT_SUCCESS_LINE" => \$reboot_success_line,
|
|
@@ -1296,7 +1299,7 @@ sub close_console {
|
|
|
my ($fp, $pid) = @_;
|
|
|
|
|
|
doprint "kill child process $pid\n";
|
|
|
- kill 2, $pid;
|
|
|
+ kill $close_console_signal, $pid;
|
|
|
|
|
|
print "closing!\n";
|
|
|
close($fp);
|