Skip to content
Snippets Groups Projects
Commit 1bcf562b authored by Morris Jette's avatar Morris Jette
Browse files

Disable tests requiring more nodes than available

These tests were failing on a single node cluster
parent 6729c142
No related branches found
No related tags found
No related merge requests found
...@@ -54,6 +54,14 @@ if {[test_launch_poe]} { ...@@ -54,6 +54,14 @@ if {[test_launch_poe]} {
set use_envvar SLURM_NODEID set use_envvar SLURM_NODEID
} }
# find out if we have enough nodes to test functionality
set partition [default_partition]
set node_count [get_node_cnt_in_part $partition]
if { $node_count < 2 } {
send_user "WARNING: Insufficient nodes in default partition ($node_count < 2)\n"
exit $exit_code
}
# #
# Submit a two node job with block distribution # Submit a two node job with block distribution
# #
......
...@@ -57,6 +57,14 @@ if {[test_launch_poe]} { ...@@ -57,6 +57,14 @@ if {[test_launch_poe]} {
set use_envvar SLURM_NODEID set use_envvar SLURM_NODEID
} }
# find out if we have enough nodes to test functionality
set partition [default_partition]
set node_count [get_node_cnt_in_part $partition]
if { $node_count < 2 } {
send_user "WARNING: Insufficient nodes in default partition ($node_count < 2)\n"
exit $exit_code
}
# #
# Submit a 1 node job and validate that we don't get more than one # Submit a 1 node job and validate that we don't get more than one
# #
......
...@@ -59,6 +59,14 @@ if {[test_launch_poe]} { ...@@ -59,6 +59,14 @@ if {[test_launch_poe]} {
set node_name_env SLURMD_NODENAME set node_name_env SLURMD_NODENAME
} }
# find out if we have enough nodes to test functionality
set partition [default_partition]
set node_count [get_node_cnt_in_part $partition]
if { $node_count < 2 } {
send_user "WARNING: Insufficient nodes in default partition ($node_count < 2)\n"
exit $exit_code
}
# #
# Build input script file # Build input script file
# #
......
...@@ -56,6 +56,14 @@ if {[test_launch_poe]} { ...@@ -56,6 +56,14 @@ if {[test_launch_poe]} {
set node_name_env SLURMD_NODENAME set node_name_env SLURMD_NODENAME
} }
# find out if we have enough nodes to test functionality
set partition [default_partition]
set node_count [get_node_cnt_in_part $partition]
if { $node_count < 4 } {
send_user "WARNING: Insufficient nodes in default partition ($node_count < 4)\n"
exit $exit_code
}
# #
# Build input script file # Build input script file
# #
......
...@@ -50,6 +50,14 @@ if {[test_front_end]} { ...@@ -50,6 +50,14 @@ if {[test_front_end]} {
exit $exit_code exit $exit_code
} }
# find out if we have enough nodes to test functionality
set partition [default_partition]
set node_count [get_node_cnt_in_part $partition]
if { $node_count < 2 } {
send_user "WARNING: Insufficient nodes in default partition ($node_count < 2)\n"
exit $exit_code
}
make_bash_script $file_bash { make_bash_script $file_bash {
echo nodeid:$SLURM_NODEID taskid:$SLURM_PROCID localid:$SLURM_LOCALID echo nodeid:$SLURM_NODEID taskid:$SLURM_PROCID localid:$SLURM_LOCALID
exit 0 exit 0
......
...@@ -261,7 +261,18 @@ if {[string compare $host_0 $host_3] == 0} { ...@@ -261,7 +261,18 @@ if {[string compare $host_0 $host_3] == 0} {
} }
if {$dup_host == 1} { if {$dup_host == 1} {
send_user "\nFAILURE: Re-used a node in the allocation\n" send_user "\nFAILURE: Re-used a node in the allocation\n"
set exit_code 1 set exit_code 1
}
# find out if we have enough nodes to test functionality
set partition [default_partition]
set node_count [get_node_cnt_in_part $partition]
if { $node_count < 2 } {
send_user "WARNING: Insufficient nodes in default partition to continue ($node_count < 2)\n"
if {$exit_code == 0} {
send_user "\nSUCCESS\n"
}
exit $exit_code
} }
# #
......
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