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

fix for test3.3 to check for correct things when printing out the node info

parent 8c17aa69
No related branches found
No related tags found
No related merge requests found
...@@ -36,8 +36,6 @@ set test_id "3.3" ...@@ -36,8 +36,6 @@ set test_id "3.3"
set authorized 1 set authorized 1
set exit_code 0 set exit_code 0
set node_name "" set node_name ""
set node_old_state ""
set node_new_state ""
set read_state "" set read_state ""
print_header $test_id print_header $test_id
...@@ -47,21 +45,13 @@ print_header $test_id ...@@ -47,21 +45,13 @@ print_header $test_id
# #
spawn $scontrol show node spawn $scontrol show node
expect { expect {
-re "NodeName=($alpha_numeric_under) State=IDLE " { -re "NodeName=($alpha_numeric_under) " {
if {[string compare $node_name ""] == 0} { if {[string compare $node_name ""] == 0} {
set node_name $expect_out(1,string) set node_name $expect_out(1,string)
set node_old_state "IDLE"
} }
exp_continue exp_continue
} }
-re "NodeName=($alpha_numeric_under) State=ALLOCATED " { timeout {
if {[string compare $node_name ""] == 0} {
set node_name $expect_out(1,string)
set node_old_state "ALLOCATED"
}
exp_continue
}
timeout {
send_user "\nFAILURE: scontrol not responding\n" send_user "\nFAILURE: scontrol not responding\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