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

fix to make sure if we put a block in an error state we remove that even if the test fails

parent 5b0e676f
No related branches found
No related tags found
No related merge requests found
...@@ -482,11 +482,11 @@ if {![string compare $layout "Dynamic"]} { ...@@ -482,11 +482,11 @@ if {![string compare $layout "Dynamic"]} {
set exit_code [change_subbp_state $first_node "0" "error"] set exit_code [change_subbp_state $first_node "0" "error"]
#allocate something with that node #allocate something with that node
set block [allocate_and_quit $smallest $first_node $error_block 1] set block [allocate_and_quit $smallest $first_node $error_block 1]
#free the block no matter what for rest of tests
set exit_code [change_subbp_state $first_node "0" "free"]
if {![string compare $block ""]} { if {![string compare $block ""]} {
set exit_code 1 set exit_code 1
} else {
# make sure sinfo/scontrol has it correct
set exit_code [change_subbp_state $first_node "0" "free"]
} }
} elseif {![string compare $layout "Overlap"]} { } elseif {![string compare $layout "Overlap"]} {
} else { } else {
......
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