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

fix a number of problems with respect to cray systems.

parent 1fc3dd83
No related branches found
No related tags found
No related merge requests found
......@@ -40,9 +40,13 @@ set file_out "test$test_id.output"
set file_err "test$test_id.error"
set timeout 60
print_header $test_id
if {[test_cray]} {
send_user "\nWARNING: This test is incompatible with Cray systems\n"
exit $exit_code
}
exec $bin_rm -f $file_in file_out file_err
make_bash_script $file_in "
$bin_date
......
......@@ -40,6 +40,11 @@ set exit_code 0
print_header $test_id
if {[test_cray]} {
send_user "\nWARNING: This test is incompatible with Cray systems\n"
exit $exit_code
}
#
# Submit a 1 node job and validate that we don't get more than one
#
......
......@@ -39,6 +39,11 @@ set job_id 0
print_header $test_id
if {[test_cray]} {
send_user "\nWARNING: This test is incompatible with Cray systems\n"
exit $exit_code
}
#
# Delete left-over input script
# Build input script file
......@@ -85,7 +90,7 @@ if {[wait_for_step $job_id.0] != 0} {
}
#
# Enable/disable/test ability to heckpoint
# Enable/disable/test abFAILility to heckpoint
#
spawn $scontrol check disable $job_id.0
expect {
......
......@@ -41,6 +41,11 @@ set job_id_2 0
print_header $test_id
if {[test_cray]} {
send_user "\nWARNING: This test is incompatible with Cray systems\n"
exit $exit_code
}
#
# Build input script file
#
......
......@@ -41,6 +41,11 @@ set scontrol_id 0
print_header $test_id
if {[test_cray]} {
send_user "\nWARNING: This test is incompatible with Cray systems\n"
exit $exit_code
}
# Delete left-over stdout file
file delete $file_out
......
......@@ -41,11 +41,16 @@ set orig_time 0
set new_time 0
print_header $test_id
exec $bin_rm -f $file_in $file_out
if {[test_cray]} {
send_user "\nWARNING: This test is incompatible with Cray systems\n"
exit $exit_code
}
#
# Build input script file
#
exec $bin_rm -f $file_in $file_out
make_bash_script $file_in "
$bin_echo TEST_BEGIN
$srun -t5 $bin_sleep 120
......
......@@ -178,7 +178,7 @@ expect {
wait
}
}
if {$matches != 1} {
if {[test_cray] == 0 && $matches != 1} {
send_user "\nFAILURE: scontrol failed to find all job steps\n"
set exit_code 1
}
......@@ -206,7 +206,7 @@ expect {
wait
}
}
if {$matches != 1} {
if {[test_cray] == 0 && $matches != 1} {
send_user "\nFAILURE: scontrol failed to specific job step\n"
set exit_code 1
}
......@@ -242,7 +242,7 @@ expect {
wait
}
}
if {$matches != 1} {
if {[test_cray] == 0 && $matches != 1} {
send_user "\nFAILURE: scontrol found unexpected job step\n"
set exit_code 1
}
......
......@@ -37,6 +37,11 @@ set exit_code 0
print_header $test_id
if {[test_cray]} {
send_user "\nWARNING: This test is incompatible with Cray systems\n"
exit $exit_code
}
#
# Issue scontrol reconfigure
#
......
......@@ -229,7 +229,7 @@ expect {
}
}
if {$step_found == 0} {
if {[test_cray] == 0 && $step_found == 0} {
send_user "\nFAILURE: squeue step format error\n"
set exit_code 1
}
......
......@@ -336,7 +336,7 @@ expect {
wait
}
}
if {$job_found == 0} {
if {[test_cray] == 0 && $job_found == 0} {
send_user "\nFAILURE: squeue failed to locate desired job step\n"
set exit_code 1
}
......
......@@ -49,7 +49,10 @@ if { [test_xcpu] } {
send_user "\nWARNING: This test is incompatible with XCPU systems\n"
exit $exit_code
}
if {[test_cray]} {
send_user "\nWARNING: This test is incompatible with Cray systems\n"
exit $exit_code
}
#
# Delete left-over program and rebuild it
......
......@@ -57,6 +57,11 @@ set other_opts "-O"
print_header $test_id
if {[test_cray]} {
send_user "\nWARNING: This test is incompatible with Cray systems\n"
exit $exit_code
}
# Execute an srun job to cat input_file to output_file, wait for completion
# Returns 0 on successful completion, returns 1 otherwise
proc run_cat_job { input_file output_file } {
......
......@@ -55,6 +55,11 @@ set task_cnt $max_stress_tasks
print_header $test_id
if {[test_cray]} {
send_user "\nWARNING: This test is incompatible with Cray systems\n"
exit $exit_code
}
# Execute an srun job to print hostname to output_file with task_cnt tasks per node,
# wait for completion
# Returns 0 on successful completion, returns 1 otherwise
......
......@@ -63,6 +63,11 @@ set task_cnt $max_stress_tasks
print_header $test_id
if {[test_cray]} {
send_user "\nWARNING: This test is incompatible with Cray systems\n"
exit $exit_code
}
# Execute an srun job to print hostname to output_file with task_cnt tasks
# per node, wait for completion
# Returns 0 on successful completion, returns 1 otherwise
......
......@@ -54,6 +54,11 @@ set task_cnt $max_stress_tasks
print_header $test_id
if {[test_cray]} {
send_user "\nWARNING: This test is incompatible with Cray systems\n"
exit $exit_code
}
# Execute an srun job to print hostname to output_file with task_cnt tasks
# per node, wait for completion
# Returns 0 on successful completion, returns 1 otherwise
......
......@@ -46,6 +46,11 @@ set task_cnt 60
print_header $test_id
if {[test_cray]} {
send_user "\nWARNING: This test is incompatible with Cray systems\n"
exit $exit_code
}
#
# A single slurmd can't handle a large task count without
# running out of memory and pthreads
......
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