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

Possibly fix test15.5.

parent 723c589a
No related branches found
No related tags found
No related merge requests found
...@@ -68,11 +68,14 @@ if {$kill_wait > 60} { ...@@ -68,11 +68,14 @@ if {$kill_wait > 60} {
# Build input script file # Build input script file
# #
make_bash_script $file_in " make_bash_script $file_in "
trap \"\" SIGINT $bin_sleep $sleep_time
$srun $bin_sleep $sleep_time
$bin_echo FINI $bin_echo FINI
" "
proc date {} {
send_user "local time: [exec date]\n"
}
# #
# Execute a couple of three minute jobs; one with a one minute time # Execute a couple of three minute jobs; one with a one minute time
# limit and the other with a four minute time limit. Confirm jobs # limit and the other with a four minute time limit. Confirm jobs
...@@ -86,14 +89,24 @@ make_bash_script $file_in " ...@@ -86,14 +89,24 @@ make_bash_script $file_in "
# #
set timeout [expr $max_job_delay + $sleep_time] set timeout [expr $max_job_delay + $sleep_time]
set job_id 0 set job_id 0
set salloc_pid [spawn $salloc -t1 --kill-command ./$file_in] set salloc_pid [spawn $salloc -t1 --kill-command=KILL ./$file_in]
expect { expect {
-re "Granted job allocation ($number)" { -re "Granted job allocation ($number)" {
set job_id $expect_out(1,string) set job_id $expect_out(1,string)
date
exp_continue
}
-re "Job allocation time limit to be reached at" {
date
exp_continue
}
-re "Job allocation ($number) has been revoked." {
date
exp_continue exp_continue
} }
-re "FINI" { -re "FINI" {
send_user "\nFAILURE: job time limit not honored\n" send_user "\nFAILURE: job time limit not honored\n"
date
set exit_code 1 set exit_code 1
exp_continue exp_continue
} }
...@@ -112,13 +125,23 @@ expect { ...@@ -112,13 +125,23 @@ expect {
set completions 0 set completions 0
set job_id 0 set job_id 0
set salloc_pid [spawn $salloc -t4 --kill-command ./$file_in] set salloc_pid [spawn $salloc -t4 --kill-command=KILL ./$file_in]
expect { expect {
-re "Granted job allocation ($number)" { -re "Granted job allocation ($number)" {
set job_id $expect_out(1,string) set job_id $expect_out(1,string)
date
exp_continue
}
-re "Job allocation time limit to be reached at" {
date
exp_continue
}
-re "Job allocation ($number) has been revoked." {
date
exp_continue exp_continue
} }
-re "FINI" { -re "FINI" {
date
incr completions incr completions
exp_continue exp_continue
} }
......
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