Skip to content
Snippets Groups Projects
Commit 1822eb23 authored by Moe Jette's avatar Moe Jette
Browse files

Deal with messages coming out of order.

parent 1c89030a
No related branches found
No related tags found
No related merge requests found
...@@ -133,10 +133,6 @@ expect { ...@@ -133,10 +133,6 @@ expect {
incr task_mask $expect_out(2,string) incr task_mask $expect_out(2,string)
exp_continue exp_continue
} }
-re "setting affinity of task" {
incr verbose_cnt
exp_continue
}
-re "error" { -re "error" {
send_user "\nFAILURE: some error occurred\n" send_user "\nFAILURE: some error occurred\n"
set exit_code 1 set exit_code 1
...@@ -152,6 +148,24 @@ if {$task_mask != $task_cnt} { ...@@ -152,6 +148,24 @@ if {$task_mask != $task_cnt} {
send_user "\nFAILURE: affinity mask inconsistent ($task_mask,$task_cnt)\n" send_user "\nFAILURE: affinity mask inconsistent ($task_mask,$task_cnt)\n"
set exit_code 1 set exit_code 1
} }
set verbose_cnt 0
send "$srun -c1 --cpu_bind=verbose,map_cpu:0 $file_prog\n"
expect {
-re "setting affinity of task" {
incr verbose_cnt
exp_continue
}
-re "error" {
send_user "\nFAILURE: some error occurred\n"
set exit_code 1
exp_continue
}
timeout {
send_user "\nFAILURE: srun (from --allocate) not responding\n"
set exit_code 1
}
-re $prompt
}
if {$verbose_cnt != $task_cnt} { if {$verbose_cnt != $task_cnt} {
send_user "\nFAILURE: verbose messages count inconsisent ($verbose_cnt,$task_cnt)\n" send_user "\nFAILURE: verbose messages count inconsisent ($verbose_cnt,$task_cnt)\n"
set exit_code 1 set exit_code 1
......
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