Skip to content
Snippets Groups Projects
Commit d5a8835d authored by Danny Auble's avatar Danny Auble
Browse files

fix test to work correctly with new output

parent 56542f98
No related branches found
No related tags found
No related merge requests found
...@@ -644,7 +644,6 @@ if {$matches != 6} { ...@@ -644,7 +644,6 @@ if {$matches != 6} {
set exit_code 1 set exit_code 1
} }
# #
# Use sacctmgr to delete the test account (shouldn't work, because of running jobs) # Use sacctmgr to delete the test account (shouldn't work, because of running jobs)
# #
...@@ -656,7 +655,7 @@ expect { ...@@ -656,7 +655,7 @@ expect {
incr damatches incr damatches
exp_continue exp_continue
} }
"Job(s) running, cancel job(s) before remove" { "Job(s) active, cancel job(s) before remove" {
send_user "This error was expected, no worries\n" send_user "This error was expected, no worries\n"
set needtodel 1 set needtodel 1
} }
...@@ -682,7 +681,11 @@ if {$needtodel == 1} { ...@@ -682,7 +681,11 @@ if {$needtodel == 1} {
} }
} }
sleep 1 if {[wait_for_job $job_id3 DONE] != 0} {
send_user "\nFAILURE: error completing job $job_id3\n"
cancel_job $job_id3
set exit_code 1
}
# #
# Use sacctmgr to delete the test account # Use sacctmgr to delete the test account
......
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