99 |
|
txt += '#\n\n' |
100 |
|
|
101 |
|
txt += 'func_exit() { \n' |
102 |
< |
txt += ' if [ $PYTHONPATH ]; then \n' |
103 |
< |
txt += ' update_fjr\n' |
104 |
< |
txt += ' fi\n' |
105 |
< |
txt += ' for file in $filesToCheck ; do\n' |
106 |
< |
txt += ' if [ -e $file ]; then\n' |
107 |
< |
txt += ' echo "tarring file $file in $out_files"\n' |
108 |
< |
txt += ' else\n' |
109 |
< |
txt += ' echo "WARNING: output file $file not found!"\n' |
110 |
< |
txt += ' fi\n' |
111 |
< |
txt += ' done\n' |
112 |
< |
txt += ' final_list=$filesToCheck\n' |
113 |
< |
txt += ' echo "JOB_EXIT_STATUS = $job_exit_code"\n' |
114 |
< |
txt += ' echo "JobExitCode=$job_exit_code" >> $RUNTIME_AREA/$repo\n' |
115 |
< |
txt += ' dumpStatus $RUNTIME_AREA/$repo\n' |
102 |
> |
txt += self.wsExitFunc_common() |
103 |
> |
|
104 |
|
txt += ' tar zcvf ${out_files}.tgz ${final_list}\n' |
105 |
|
txt += ' cp ${out_files}.tgz $ORIG_WD/\n' |
106 |
|
txt += ' cp crab_fjr_$NJob.xml $ORIG_WD/\n' |