Skip to content
Snippets Groups Projects
Commit 05eadb57 authored by Veronique Legrand's avatar Veronique Legrand Committed by Morris Jette
Browse files

fix test if unsufficient resources

Previously the test would generate an error if the default partition
  contained less than 3 nodes
bug 1720
parent ee72ee8c
No related branches found
No related tags found
No related merge requests found
......@@ -285,6 +285,12 @@ proc submit_tasks {ntasks ntaskpn} {
}
######################## Test Starts Here ########################
set def_part_name [default_partition]
set nb_nodes [get_node_cnt_in_part $def_part_name]
if {$nb_nodes < 3} {
send_user "\nWARNING: This test requires at least 3 nodes in the cluster.\n"
exit $exit_code
}
make_bash_script $file_in "true"
......
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