Skip to content
Snippets Groups Projects
Commit cdc91939 authored by Don Lipari's avatar Don Lipari
Browse files

Fixed various tests to clean up temporary files

parent b3183a13
No related branches found
No related tags found
No related merge requests found
......@@ -169,6 +169,12 @@ if {$job_id == 0} {
set exit_code 1
}
if {[wait_for_job $job_id DONE] != 0} {
send_user "\nFAILURE: error completing job $job_id\n"
cancel_job $job_id
set exit_code 1
}
#
# Post-processing
#
......
......@@ -98,7 +98,7 @@ if {[wait_for_job $job_id RUNNING] != 0} {
cancel_job $job_id
if {$exit_code == 0} {
exec $bin_rm -f file_in
exec $bin_rm -f $file_in
send_user "\nSUCCESS\n"
}
exit $exit_code
......@@ -257,7 +257,7 @@ if {[wait_for_file $file_out] == 0} {
}
if {$exit_code == 0} {
exec rm -f $file_out $file_prog
exec rm -f $file_in $file_out $file_prog
send_user "\nSUCCESS\n"
}
exit $exit_code
......
......@@ -189,6 +189,7 @@ foreach job_id $submitted_jobs {
if {$exit_code == 0} {
exec rm -f $file_in
send_user "\nSUCCESS\n"
}
exit $exit_code
......
......@@ -246,7 +246,7 @@ if {[wait_for_file $file_out] == 0} {
}
if {$exit_code == 0} {
exec rm -f $file_out $file_prog
exec rm -f $file_in $file_out $file_prog
send_user "\nSUCCESS\n"
}
exit $exit_code
......
......@@ -364,7 +364,7 @@ if {[file exists $orig_spank_conf]} {
}
if {$exit_code == 0} {
exec $bin_rm -f $orig_spank_conf $new_spank_conf $file_out $spank_out ${file_prog}.so
exec $bin_rm -f $orig_spank_conf $new_spank_conf $file_in $file_out $spank_out ${file_prog}.so
send_user "\nSUCCESS\n"
}
exit $exit_code
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