48 opts, args = getopt.getopt(argv,
"", [
"nproc=",
"dohighstat",
'hlt',
'inFile=',
'intbld'])
49 except getopt.GetoptError
as e:
59 for opt, arg
in opts :
60 if opt ==
"--inFile" :
64 if opt ==
"--dohighstat" :
68 if opt
in (
'--intbld',):
72 print(
"\nWARNING: option --hlt is deprecated as this is now default.\n")
75 commands_standard_file=open(inFile,
'r')
76 lines_standard=commands_standard_file.readlines()
77 commands_standard_file.close()
80 commands_standard_file=open(
'cmsDriver_standard_hlt.txt',
'r')
81 lines_standard=commands_standard_file.readlines()
82 commands_standard_file.close()
86 commands_highstat_file=open(
'cmsDriver_highstats_hlt.txt',
'r')
87 lines_highstat=commands_highstat_file.readlines()
88 commands_highstat_file.close()
90 lines=lines+lines_highstat
95 'SingleMuPt10',
'SinglePiPt1',
'SingleElectronPt10',
'SingleGammaPt10',
96 'MinBias',
'QCD_Pt_80_120',
'ZEE',
'BJets_Pt_50_120',
'TTbar',
98 'SinglePiE50HCAL',
'H130GGgluonfusion',
'QQH120Inv',
'bJpsiX',
99 'JpsiMM',
'BsMM',
'UpsMM',
'CJets_Pt_50_120'
104 if ( line[0]!=
'#' and
105 line.replace(
' ',
'')!=
'\n' ):
106 linecomponents=line.split(
'@@@')
107 if intBld
and linecomponents[0].
strip()
not in forIB:
continue
108 command=linecomponents[1][:-1]
109 commands.append(command)
110 print(
'Will do: '+command)
120 print(
'Running in %s thread(s)' %np)
122 for command
in commands:
123 print(
'Preparing to run %s' %command)
125 clist.append(current)
130 while (int(i) >= int(np)):
134 for j
in range(0,alen):
137 isA=pingle.is_alive()
139 if (
not isA
and mystat==0 ):
142 report+=pingle.report
148 for j
in range(0,alen):
155 report+=pingle.report
158 report+=
'\n %s tests passed, %s failed \n' %(npass,nfail)
161 runall_report_name=
'runall-report.log'
162 runall_report=open(runall_report_name,
'w')
163 runall_report.write(report)
164 runall_report.close()
167 print(
"\nWARNING: option --hlt is deprecated as this is now default.\n")