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

fix to work correctly when multiple partitions exist

parent 6973b97c
No related branches found
No related tags found
No related merge requests found
...@@ -62,8 +62,10 @@ proc def_node_cnt { } { ...@@ -62,8 +62,10 @@ proc def_node_cnt { } {
set node_cnt 1 set node_cnt 1
spawn $sinfo -h -o "name=%20P node_cnt=%D" spawn $sinfo -h -o "name=%20P node_cnt=%D"
expect { expect {
-re "name=($alpha_numeric_under) *node_cnt=($number)" { -re "name=($alpha_numeric_under)\\\* *node_cnt=($number)" {
set node_cnt $expect_out(2,string) set node_cnt $expect_out(2,string)
send_user "hey node_cnt = $node_cnt\n"
exp_continue exp_continue
} }
timeout { timeout {
......
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