Skip to content
Snippets Groups Projects
Commit 723c589a authored by Christopher J. Morrone's avatar Christopher J. Morrone
Browse files

Remove InactiveLimit code (no longer necessary).

Have the test script ignore SIGINT.
parent dd1a4ce5
No related branches found
No related tags found
No related merge requests found
......@@ -42,17 +42,10 @@ set sleep_time 180
print_header $test_id
#
# Make sure sleep time is no larger than InactiveLimit
set inactive_limit $sleep_time
set kill_wait $sleep_time
log_user 0
spawn $scontrol show config
expect {
-re "InactiveLimit *= ($number)" {
set inactive_limit $expect_out(1,string)
exp_continue
}
-re "KillWait *= ($number)" {
set kill_wait $expect_out(1,string)
exp_continue
......@@ -66,26 +59,16 @@ expect {
}
}
log_user 1
if {$inactive_limit == 0} {
set inactive_limit $sleep_time
}
if {$inactive_limit < 120} {
send_user "\nWARNING: InactiveLimit ($inactive_limit) is too low for this test\n"
exit 0
}
if {$kill_wait > 60} {
send_user "\nWARNING: KillWait ($kill_wait) is too high for this test\n"
exit 0
}
if {$inactive_limit < $sleep_time} {
set sleep_time [expr $inactive_limit + $kill_wait]
send_user "\nReset job sleep time to $sleep_time seconds\n"
}
#
# Build input script file
#
make_bash_script $file_in "
trap \"\" SIGINT
$srun $bin_sleep $sleep_time
$bin_echo FINI
"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment