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

Fix tests to run on single node cluster

parent 04c994ca
No related branches found
No related tags found
No related merge requests found
...@@ -62,12 +62,9 @@ if {[test_launch_poe]} { ...@@ -62,12 +62,9 @@ if {[test_launch_poe]} {
# find out if we have enough nodes to test functionality # find out if we have enough nodes to test functionality
set partition [default_partition] set partition [default_partition]
set node_count [get_node_cnt_in_part $partition] set node_count [get_node_cnt_in_part $partition]
if { $node_count < 3 } { if { $node_count < 3 } {
send_user "WARNING: system must have at least 3 \ send_user "WARNING: Insufficient nodes in default partition ($node_count < 3)\n"
nodes to run this test on. This system \
only has $node_count.\n"
exit $exit_code exit $exit_code
} }
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
source ./globals source ./globals
set test_id "38.10" set test_id "38.10"
set exit_code 0
print_header $test_id print_header $test_id
set prompt "PROMPT: " set prompt "PROMPT: "
......
...@@ -52,6 +52,14 @@ proc end_it { exit_code } { ...@@ -52,6 +52,14 @@ proc end_it { exit_code } {
print_header $test_id print_header $test_id
# 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 < 3 } {
send_user "WARNING: Insufficient nodes in default partition ($node_count < 3)\n"
exit $exit_code
}
if {[test_front_end]} { if {[test_front_end]} {
send_user "\nWARNING: This test is incompatible with front-end systems\n" send_user "\nWARNING: This test is incompatible with front-end systems\n"
exit $exit_code exit $exit_code
......
...@@ -40,6 +40,14 @@ set file_out "test$test_id.out" ...@@ -40,6 +40,14 @@ set file_out "test$test_id.out"
print_header $test_id print_header $test_id
# 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 < 3 } {
send_user "WARNING: Insufficient nodes in default partition ($node_count < 3)\n"
exit $exit_code
}
proc sbatch {} { proc sbatch {} {
global number sbatch file_in bin_sleep file_out job_id global number sbatch file_in bin_sleep file_out job_id
......
...@@ -41,6 +41,14 @@ set file_out "test$test_id.out" ...@@ -41,6 +41,14 @@ set file_out "test$test_id.out"
print_header $test_id print_header $test_id
# 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 < 3 } {
send_user "WARNING: Insufficient nodes in default partition ($node_count < 3)\n"
exit $exit_code
}
proc salloc {} { proc salloc {} {
global number salloc bin_sleep file_out job_id global number salloc bin_sleep file_out job_id
......
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