Skip to content
Snippets Groups Projects
Commit 1638fa6b authored by Danny Auble's avatar Danny Auble
Browse files

Minor test fixes to work under all cases.

parent dfb0739e
No related branches found
No related tags found
No related merge requests found
...@@ -207,6 +207,10 @@ expect { ...@@ -207,6 +207,10 @@ expect {
slow_kill $salloc_pid slow_kill $salloc_pid
exit 1 exit 1
} }
-re "$srun" {
# just so we don't grab the srun call
exp_continue;
}
-re $prompt -re $prompt
} }
...@@ -232,6 +236,10 @@ expect { ...@@ -232,6 +236,10 @@ expect {
send_user "or failure to recognize prompt\n" send_user "or failure to recognize prompt\n"
set exit_code 1 set exit_code 1
} }
-re "$srun" {
# just so we don't grab the srun call
exp_continue;
}
-re $prompt -re $prompt
} }
if {$task_mask != $expected_mask} { if {$task_mask != $expected_mask} {
...@@ -274,6 +282,10 @@ while {$this_cnt <= $num_sockets} { ...@@ -274,6 +282,10 @@ while {$this_cnt <= $num_sockets} {
send_user "or failure to recognize prompt\n" send_user "or failure to recognize prompt\n"
set exit_code 1 set exit_code 1
} }
-re "$srun" {
# just so we don't grab the srun call
exp_continue;
}
-re $prompt -re $prompt
} }
...@@ -324,6 +336,10 @@ while {$this_cnt <= $num_cores} { ...@@ -324,6 +336,10 @@ while {$this_cnt <= $num_cores} {
send_user "or failure to recognize prompt\n" send_user "or failure to recognize prompt\n"
set exit_code 1 set exit_code 1
} }
-re "$srun" {
# just so we don't grab the srun call
exp_continue;
}
-re $prompt -re $prompt
} }
...@@ -374,6 +390,10 @@ while {$this_cnt <= $num_threads} { ...@@ -374,6 +390,10 @@ while {$this_cnt <= $num_threads} {
send_user "or failure to recognize prompt\n" send_user "or failure to recognize prompt\n"
set exit_code 1 set exit_code 1
} }
-re "$srun" {
# just so we don't grab the srun call
exp_continue;
}
-re $prompt -re $prompt
} }
...@@ -423,6 +443,10 @@ while {$this_cnt <= $task_cnt} { ...@@ -423,6 +443,10 @@ while {$this_cnt <= $task_cnt} {
send_user "or failure to recognize prompt\n" send_user "or failure to recognize prompt\n"
set exit_code 1 set exit_code 1
} }
-re "$srun" {
# just so we don't grab the srun call
exp_continue;
}
-re $prompt -re $prompt
} }
......
...@@ -158,7 +158,7 @@ proc test_part { acct part acct_con } { ...@@ -158,7 +158,7 @@ proc test_part { acct part acct_con } {
set sub_job 0 set sub_job 0
spawn $srun -A $acct -p $part hostname spawn $srun -I -A $acct -p $part hostname
expect { expect {
-re "$host_name" { -re "$host_name" {
set sub_job 1 set sub_job 1
......
...@@ -188,7 +188,7 @@ proc test_part {acct qos part qos_con } { ...@@ -188,7 +188,7 @@ proc test_part {acct qos part qos_con } {
global srun host_name part_name exit_code global srun host_name part_name exit_code
set sub_job 0 set sub_job 0
spawn $srun -A $acct --qos $qos -p $part hostname spawn $srun -I -A $acct --qos $qos -p $part hostname
expect { expect {
-re "$host_name" { -re "$host_name" {
set sub_job 1 set sub_job 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