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

fix for incomplete test

parent a7296b8d
No related branches found
No related tags found
No related merge requests found
...@@ -57,14 +57,14 @@ if { [string compare [priority_type] multifactor] } { ...@@ -57,14 +57,14 @@ if { [string compare [priority_type] multifactor] } {
make_bash_script $file_in "$bin_sleep 600" make_bash_script $file_in "$bin_sleep 600"
proc def_node_cnt { } { proc def_node_cnt { } {
global sinfo alpha_numeric_under number exit_code global sinfo alpha_numeric_under number exit_code partition
set node_cnt 1 set node_cnt 1
spawn $sinfo -h -o "name=%20P node_cnt=%D" spawn $sinfo -h -o "name=%P node_cnt=%D" -p $partition
expect { expect {
-re "name=($alpha_numeric_under)\\\* *node_cnt=($number)(k?)" { -re "name=($alpha_numeric_under) node_cnt=($number)(k?)" {
set node_cnt $expect_out(2,string) set node_cnt $expect_out(2,string)
if {[string compare $expect_out(2,string) ""]} { if {[string compare $expect_out(3,string) ""]} {
set node_cnt [expr $node_cnt * 1024] set node_cnt [expr $node_cnt * 1024]
} }
......
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