Skip to content
Snippets Groups Projects
Commit 1de1507a authored by jette's avatar jette
Browse files

Merge branch 'slurm-14.03'

parents 70ca95a6 2e8a2dd2
No related branches found
No related tags found
No related merge requests found
...@@ -39,6 +39,12 @@ set exit_code 0 ...@@ -39,6 +39,12 @@ set exit_code 0
print_header $test_id print_header $test_id
set min_age [get_min_job_age]
if {$min_age < 10} {
send_user "\nWARNING: MinJobAge too low for this test ($min_age < 10)\n"
exit 0
}
# Remove any vestigial scripts # Remove any vestigial scripts
exec $bin_rm -f $complete_script $fail_script exec $bin_rm -f $complete_script $fail_script
......
...@@ -38,6 +38,12 @@ set exit_code 0 ...@@ -38,6 +38,12 @@ set exit_code 0
print_header $test_id print_header $test_id
set min_age [get_min_job_age]
if {$min_age < 10} {
send_user "\nWARNING: MinJobAge too low for this test ($min_age < 10)\n"
exit 0
}
# Remove any vestigial scripts # Remove any vestigial scripts
exec $bin_rm -f $script exec $bin_rm -f $script
...@@ -55,7 +61,7 @@ proc check_hold { job } { ...@@ -55,7 +61,7 @@ proc check_hold { job } {
exp_continue exp_continue
} }
timeout { timeout {
send_user "\nFAILURE scontrol is not responding\n" send_user "\nFAILURE: scontrol is not responding\n"
set exit_code 1 set exit_code 1
} }
eof { eof {
...@@ -64,7 +70,7 @@ proc check_hold { job } { ...@@ -64,7 +70,7 @@ proc check_hold { job } {
} }
if { $hold != 1 } { if { $hold != 1 } {
send_user "\nFAILURE scontrol did not hold job after it was requeued\n" send_user "\nFAILURE: scontrol did not hold job after it was requeued\n"
set exit_code 1 set exit_code 1
} }
} }
...@@ -128,8 +134,8 @@ expect { ...@@ -128,8 +134,8 @@ expect {
exp_continue exp_continue
} }
timeout { timeout {
send_user "\nFAILURE sbatch is not responding\n" send_user "\nFAILURE: sbatch is not responding\n"
set exit_code 1 set exit_code 1get_min_job_age
} }
eof { eof {
wait wait
...@@ -146,7 +152,7 @@ wait_for_job $job_id DONE ...@@ -146,7 +152,7 @@ wait_for_job $job_id DONE
spawn $scontrol requeuehold $job_id spawn $scontrol requeuehold $job_id
expect { expect {
timeout { timeout {
send_user "\nFAILURE scontrol is not responding\n" send_user "\nFAILURE: scontrol is not responding\n"
set exit_code 1 set exit_code 1
} }
eof { eof {
......
...@@ -37,6 +37,12 @@ set exit_code 0 ...@@ -37,6 +37,12 @@ set exit_code 0
print_header $test_id print_header $test_id
set min_age [get_min_job_age]
if {$min_age < 10} {
send_user "\nWARNING: MinJobAge too low for this test ($min_age < 10)\n"
exit 0
}
# Remove any vestigial files # Remove any vestigial files
exec $bin_rm -f $script exec $bin_rm -f $script
......
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