ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CRAB/python/cms_cmssw.py
(Generate patch)

Comparing COMP/CRAB/python/cms_cmssw.py (file contents):
Revision 1.193 by spiga, Wed May 28 13:01:52 2008 UTC vs.
Revision 1.195 by slacapra, Wed May 28 15:42:01 2008 UTC

# Line 163 | Line 163 | class Cmssw(JobType):
163              self.total_number_of_events = int(cfg_params['CMSSW.total_number_of_events'])
164              self.selectTotalNumberEvents = 1
165              if self.selectNumberOfJobs  == 1:
166 <                if int(self.total_number_of_events) < int(self.theNumberOfJobs):  
166 >                if int(self.total_number_of_events) < int(self.theNumberOfJobs):
167                      msg = 'Must specify at least one event per job. total_number_of_events > number_of_jobs '
168                      raise CrabException(msg)
169          else:
# Line 1196 | Line 1196 | class Cmssw(JobType):
1196          txt += '    if [ -s $RUNTIME_AREA/parseCrabFjr.py ]; then\n'
1197          txt += '        cmd_out=`python $RUNTIME_AREA/parseCrabFjr.py --input $RUNTIME_AREA/crab_fjr_$NJob.xml --MonitorID $MonitorID --MonitorJobID $MonitorJobID`\n'
1198          txt += '        echo "Result of parsing the FrameworkJobReport crab_fjr.xml: $cmd_out"\n'
1199 <        txt += '        executable_exit_status=`echo $cmd_out | awk -F\; "{print $1}" | awk -F ' ' "{print $NF}"`\n'
1199 >        txt += '        tmp_executable_exit_status=`echo $cmd_out | awk -F\; \'{print $1}\' | awk -F \' \' \'{print $NF}\'`\n'
1200 >        txt += '        if [ -n $tmp_executable_exit_status ];then\n'
1201 >        txt += '            executable_exit_status=$tmp_executable_exit_status\n'
1202 >        txt += '        fi\n'
1203          txt += '        if [ $executable_exit_status -eq 50115 ];then\n'
1204          txt += '            echo ">>> crab_fjr.xml contents: "\n'
1205          txt += '            cat $RUNTIME_AREA/crab_fjr_NJob.xml\n'

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines