Skip to content
Snippets Groups Projects
Commit e98485dc authored by Moe Jette's avatar Moe Jette
Browse files

Just wait for job to complete in order to avoid having job complete

before we catch it (script only runs for a second and we poll at 
the same interval, so we might not even seen it in RUNNING state, 
and report that as an ERROR).
parent df515e13
No related branches found
No related tags found
No related merge requests found
......@@ -85,7 +85,7 @@ if {$job_id == 0} {
#
# Wait for job to run
#
if {[wait_for_job $job_id "RUNNING"] != 0} {
if {[wait_for_job $job_id "DONE"] != 0} {
send_user "\nFAILURE: waiting for job to run\n"
set exit_code 1
}
......@@ -137,7 +137,7 @@ if {$job_id == 0} {
#
# Wait for job to run
#
if {[wait_for_job $job_id "RUNNING"] != 0} {
if {[wait_for_job $job_id "DONE"] != 0} {
send_user "\nFAILURE: waiting for job to run\n"
set exit_code 1
}
......@@ -188,7 +188,7 @@ if {$job_id == 0} {
#
# Wait for job to run
#
if {[wait_for_job $job_id "RUNNING"] != 0} {
if {[wait_for_job $job_id "DONE"] != 0} {
send_user "\nFAILURE: waiting for job to run\n"
set exit_code 1
}
......
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