70 |
|
txt += '#\n\n' |
71 |
|
|
72 |
|
txt += 'func_exit() { \n' |
73 |
< |
txt += ' if [ $PYTHONPATH ]; then \n' |
74 |
< |
txt += ' update_fjr\n' |
75 |
< |
txt += ' fi\n' |
76 |
< |
txt += ' cd $RUNTIME_AREA \n' |
77 |
< |
txt += ' cp ${SGE_STDOUT_PATH} CMSSW_${NJob}.stdout \n' |
78 |
< |
txt += ' cp ${SGE_STDERR_PATH} CMSSW_${NJob}.stderr \n' |
79 |
< |
txt += ' for file in $filesToCheck ; do\n' |
80 |
< |
txt += ' if [ -e $file ]; then\n' |
81 |
< |
txt += ' echo "tarring file $file in $out_files"\n' |
82 |
< |
txt += ' else\n' |
83 |
< |
txt += ' echo "WARNING: output file $file not found!"\n' |
84 |
< |
txt += ' fi\n' |
85 |
< |
txt += ' done\n' |
86 |
< |
txt += ' echo "JOB_EXIT_STATUS = $job_exit_code"\n' |
87 |
< |
txt += ' echo "JobExitCode=$job_exit_code" >> $RUNTIME_AREA/$repo\n' |
88 |
< |
txt += ' dumpStatus $RUNTIME_AREA/$repo\n' |
73 |
> |
txt += self.wsExitFunc_common() |
74 |
> |
|
75 |
|
txt += ' cp ${SGE_STDOUT_PATH} CMSSW_${NJob}.stdout \n' |
76 |
|
txt += ' cp ${SGE_STDERR_PATH} CMSSW_${NJob}.stderr \n' |
77 |
|
txt += ' tar zcvf ${out_files}.tgz ${filesToCheck}\n' |