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

Merge branch 'slurm-15.08' into slurm-16.05

parents 5453fb87 3d050969
No related branches found
No related tags found
No related merge requests found
...@@ -131,9 +131,15 @@ if (![string compare $other_part_name ""]) { ...@@ -131,9 +131,15 @@ if (![string compare $other_part_name ""]) {
# #
# Submit job explicitly to a non-default partition # Submit job explicitly to a non-default partition
# #
set job_id 0 set job_id 0
set legit_failure 0
set salloc_pid [spawn $salloc --partition=$other_part_name -t1 $bin_sleep 1] set salloc_pid [spawn $salloc --partition=$other_part_name -t1 $bin_sleep 1]
expect { expect {
-re "Required node not available" {
set legit_failure 1
exec $bin_kill -INT $salloc_pid
exp_continue
}
-re "Granted job allocation ($number)" { -re "Granted job allocation ($number)" {
set job_id $expect_out(1,string) set job_id $expect_out(1,string)
exp_continue exp_continue
...@@ -151,7 +157,9 @@ expect { ...@@ -151,7 +157,9 @@ expect {
} }
} }
# Confirm the job's partition # Confirm the job's partition
if {$job_id == 0} { if {$legit_failure == 1} {
send_user "\nWARNING: partition '$other_part_name' is not usable\n"
} elseif {$job_id == 0} {
send_user "\nFAILURE: batch submit failure\n" send_user "\nFAILURE: batch submit failure\n"
set exit_code 1 set exit_code 1
} else { } else {
......
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