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

Merge branch 'slurm-15.08' into slurm-16.05

parents f31751fe f0814910
No related branches found
No related tags found
No related merge requests found
...@@ -62,8 +62,14 @@ proc core_spec_job {task node core_spec exp_nodes} { ...@@ -62,8 +62,14 @@ proc core_spec_job {task node core_spec exp_nodes} {
} else { } else {
set task_limit 1 set task_limit 1
} }
set ntasks [expr abs($task_limit + $task)]
if {$ntasks == 0} {
set ntasks 1
}
set error_chk 0 set error_chk 0
spawn $sbatch -t1 -w$node -S$core_spec -n[expr abs($task_limit + $task)] -o$file_out $spec_in spawn $sbatch -t1 -w$node -S$core_spec -n$ntasks -o$file_out $spec_in
expect { expect {
-re "Submitted batch job ($number)" { -re "Submitted batch job ($number)" {
set job_id $expect_out(1,string) set job_id $expect_out(1,string)
...@@ -156,6 +162,19 @@ proc core_spec_job {task node core_spec exp_nodes} { ...@@ -156,6 +162,19 @@ proc core_spec_job {task node core_spec exp_nodes} {
print_header $test_id print_header $test_id
set select_type [test_select_type]
if {![string compare $select_type "linear"] || ![string compare $select_type "serial"]} {
send_user "\nWARNING: This test is incompatible with select/$select_type\n"
exit 0
} elseif {![string compare $select_type "cray"] && ![test_select_type_params "other_cons_res"]} {
send_user "\nWARNING: This test is incompatible with select/linear\n"
exit 0
}
if {[test_select_type_params "CR_SOCKET"]} {
send_user "\nWARNING: This test is incompatible with CR_SOCKET allocations\n"
exit 0
}
log_user 0 log_user 0
set allow_spec 0 set allow_spec 0
spawn $scontrol show config spawn $scontrol show config
...@@ -178,16 +197,6 @@ if {$allow_spec == 0} { ...@@ -178,16 +197,6 @@ if {$allow_spec == 0} {
exit $exit_code exit $exit_code
} }
set select_type [test_select_type]
if {![string compare $select_type "linear"]} {
send_user "\nWARNING: This test is incompatible with select/$select_type\n"
exit 0
}
if {[test_select_type_params "CR_SOCKET"]} {
send_user "\nWARNING: This test is incompatible with CR_SOCKET allocations\n"
exit 0
}
# Remove any vestigial files # Remove any vestigial files
exec $bin_rm -f $file_in $file_out $spec_in exec $bin_rm -f $file_in $file_out $spec_in
......
...@@ -156,6 +156,19 @@ proc thread_spec_job {task node thread_spec exp_nodes} { ...@@ -156,6 +156,19 @@ proc thread_spec_job {task node thread_spec exp_nodes} {
print_header $test_id print_header $test_id
set select_type [test_select_type]
if {![string compare $select_type "linear"] || ![string compare $select_type "serial"]} {
send_user "\nWARNING: This test is incompatible with select/$select_type\n"
exit 0
} elseif {![string compare $select_type "cray"] && ![test_select_type_params "other_cons_res"]} {
send_user "\nWARNING: This test is incompatible with select/linear\n"
exit 0
}
if {[test_select_type_params "CR_SOCKET"]} {
send_user "\nWARNING: This test is incompatible with CR_SOCKET allocations\n"
exit 0
}
log_user 0 log_user 0
set allow_spec 0 set allow_spec 0
spawn $scontrol show config spawn $scontrol show config
...@@ -178,17 +191,6 @@ if {$allow_spec == 0} { ...@@ -178,17 +191,6 @@ if {$allow_spec == 0} {
exit $exit_code exit $exit_code
} }
set select_type [test_select_type]
if {![string compare $select_type "linear"] || ![string compare $select_type "serial"]} {
send_user "\nWARNING: This test is incompatible with select/$select_type\n"
exit 0
}
if {[test_select_type_params "CR_SOCKET"]} {
send_user "\nWARNING: This test is incompatible with CR_SOCKET allocations\n"
exit 0
}
# Remove any vestigial files # Remove any vestigial files
exec $bin_rm -f $file_in $file_out $spec_in exec $bin_rm -f $file_in $file_out $spec_in
......
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