46 opts, args = getopt.getopt(argv,
"", [
"nproc=",
"dohighstat",
'hlt',
'inFile=',
'intbld'])
47 except getopt.GetoptError
as e:
48 print "unknown option",
str(e)
57 for opt, arg
in opts :
58 if opt ==
"--inFile" :
62 if opt ==
"--dohighstat" :
66 if opt
in (
'--intbld',):
70 print "\nWARNING: option --hlt is deprecated as this is now default.\n" 73 commands_standard_file=open(inFile,
'r') 74 lines_standard=commands_standard_file.readlines() 75 commands_standard_file.close() 78 commands_standard_file=open(
'cmsDriver_standard_hlt.txt',
'r') 79 lines_standard=commands_standard_file.readlines() 80 commands_standard_file.close() 84 commands_highstat_file=open(
'cmsDriver_highstats_hlt.txt',
'r') 85 lines_highstat=commands_highstat_file.readlines() 86 commands_highstat_file.close() 88 lines=lines+lines_highstat 93 'SingleMuPt10',
'SinglePiPt1',
'SingleElectronPt10',
'SingleGammaPt10',
94 'MinBias',
'QCD_Pt_80_120',
'ZEE',
'BJets_Pt_50_120',
'TTbar',
96 'SinglePiE50HCAL',
'H130GGgluonfusion',
'QQH120Inv',
'bJpsiX',
97 'JpsiMM',
'BsMM',
'UpsMM',
'CJets_Pt_50_120' 102 if ( line[0]!=
'#' and 103 line.replace(
' ',
'')!=
'\n' ):
104 linecomponents=line.split(
'@@@')
105 if intBld
and linecomponents[0].
strip()
not in forIB:
continue 106 command=linecomponents[1][:-1]
107 commands.append(command)
108 print 'Will do: '+command
118 print 'Running in %s thread(s)' %np
120 for command
in commands:
121 print 'Preparing to run %s' %command
123 clist.append(current)
128 while (
int(i) >=
int(np)):
132 for j
in range(0,alen):
137 if (
not isA
and mystat==0 ):
140 report+=pingle.report
146 for j
in range(0,alen):
153 report+=pingle.report
156 report+=
'\n %s tests passed, %s failed \n' %(npass,nfail)
159 runall_report_name=
'runall-report.log' 160 runall_report=open(runall_report_name,
'w')
161 runall_report.write(report)
162 runall_report.close()
165 print "\nWARNING: option --hlt is deprecated as this is now default.\n"