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

more modifications

parent 4bd82b7b
No related branches found
No related tags found
No related merge requests found
...@@ -93,7 +93,7 @@ proc sinfo_test_1 { node proc_cnt total_procs idle_cpus } { ...@@ -93,7 +93,7 @@ proc sinfo_test_1 { node proc_cnt total_procs idle_cpus } {
set found 0 set found 0
set rc 0 set rc 0
send "$sinfo -o '%C %A %N' -h -n $node \n" send "$sinfo -o '\%C \%A \%N' -h -n $node\n"
expect { expect {
-re "($number)(k?).($number)(k?).($number)(k?).($number)(k?) ($number)(k?).($number)(k?) $node" { -re "($number)(k?).($number)(k?).($number)(k?).($number)(k?) ($number)(k?).($number)(k?) $node" {
set found 1 set found 1
...@@ -131,7 +131,7 @@ proc sinfo_test_1 { node proc_cnt total_procs idle_cpus } { ...@@ -131,7 +131,7 @@ proc sinfo_test_1 { node proc_cnt total_procs idle_cpus } {
-re $prompt { -re $prompt {
} }
timeout { timeout {
send_user "\nFAILURE: scontrol not responding\n" send_user "\nFAILURE: sinfo not responding\n"
slow_kill $mypid slow_kill $mypid
return 1 return 1
} }
...@@ -164,7 +164,7 @@ proc sinfo_test_2 { node proc_cnt total_procs } { ...@@ -164,7 +164,7 @@ proc sinfo_test_2 { node proc_cnt total_procs } {
} }
set idle_nodes [expr $total_nodes - $alloc_nodes] set idle_nodes [expr $total_nodes - $alloc_nodes]
send "$sinfo -o '%t %D %N' -h -n $node \n" send "$sinfo -o '\%t \%D \%N' -h -n $node\r"
expect { expect {
-re "alloc ($number)(k?) $node" { -re "alloc ($number)(k?) $node" {
set num_alloc $expect_out(1,string) set num_alloc $expect_out(1,string)
...@@ -183,7 +183,7 @@ proc sinfo_test_2 { node proc_cnt total_procs } { ...@@ -183,7 +183,7 @@ proc sinfo_test_2 { node proc_cnt total_procs } {
-re $prompt { -re $prompt {
} }
timeout { timeout {
send_user "\nFAILURE: scontrol not responding\n" send_user "\nFAILURE: sinfo not responding\n"
slow_kill $mypid slow_kill $mypid
return 1 return 1
} }
...@@ -198,8 +198,6 @@ proc sinfo_test_2 { node proc_cnt total_procs } { ...@@ -198,8 +198,6 @@ proc sinfo_test_2 { node proc_cnt total_procs } {
} elseif { $num_idle != $idle_nodes } { } elseif { $num_idle != $idle_nodes } {
send_user "\nFAILURE: sinfo 2 idle nodes wrong, got $num_idle but needed $idle_nodes\n" send_user "\nFAILURE: sinfo 2 idle nodes wrong, got $num_idle but needed $idle_nodes\n"
set rc 1 set rc 1
} else {
send_user "SUCCESS\n"
} }
return $rc return $rc
...@@ -242,6 +240,8 @@ proc allocate_and_quit { node proc_cnt total_procs } { ...@@ -242,6 +240,8 @@ proc allocate_and_quit { node proc_cnt total_procs } {
send "exit\n" send "exit\n"
return 1 return 1
} }
send "exit\n"
exp_continue
} }
-re "Unable to contact" { -re "Unable to contact" {
...@@ -261,9 +261,6 @@ proc allocate_and_quit { node proc_cnt total_procs } { ...@@ -261,9 +261,6 @@ proc allocate_and_quit { node proc_cnt total_procs } {
} }
} }
if {$job_id} {
send "exit\n"
}
return $rc return $rc
} }
......
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