CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
runall.testit Class Reference
Inheritance diagram for runall.testit:

Public Member Functions

def __init__
 
def run
 

Public Attributes

 command
 
 nfail
 
 npass
 
 report
 
 status
 

Detailed Description

Definition at line 8 of file runall.py.

Constructor & Destructor Documentation

def runall.testit.__init__ (   self,
  command 
)

Definition at line 9 of file runall.py.

9 
10  def __init__(self,command):
11  Thread.__init__(self)
12  self.command=command
13  self.status=-1
14  self.report=''
15  self.nfail=0
self.npass=0
def __init__
Definition: runall.py:9

Member Function Documentation

def runall.testit.run (   self)

Definition at line 16 of file runall.py.

References runall.testit.command, ConfigBuilder.ConfigBuilder.command, runall.testit.nfail, runall.testit.npass, TShapeAnalysis.npass, runall.testit.report, and ALIUtils.report.

Referenced by Types.EventID.cppID(), and Types.LuminosityBlockID.cppID().

16 
17  def run(self):
18  commandbase=''
19  for word in self.command.split(' ')[1:]:
20  commandbase+='%s_'%word
21  logfile='%s.log' %commandbase[:-1]
22  logfile = logfile.replace('/','_') # otherwise the path in the args to --cusotmize make trouble
23 
24  startime='date %s' %time.asctime()
25  executable='%s > %s 2>&1' %(self.command,logfile)
26 
27  exitcode=os.system(executable)
28  endtime='date %s' %time.asctime()
29  tottime='%s-%s'%(endtime,startime)
30 
31  if exitcode!=0:
32  log='%s : FAILED - time: %s s - exit: %s\n' %(self.command,tottime,exitcode)
33  self.report+='%s\n'%log
34  self.nfail=1
35  self.npass=0
36  else:
37  log='%s : PASSED - time: %s s - exit: %s\n' %(self.command,tottime,exitcode)
38  self.report+='%s\n'%log
39  self.nfail=0
40  self.npass=1

Member Data Documentation

runall.testit.command

Definition at line 11 of file runall.py.

Referenced by cmsRelvalreport.Profile._profile_edmsize(), cmsRelvalreport.Profile._profile_igprof(), cmsRelvalreport.Profile._profile_Memcheck_Valgrind(), cmsRelvalreport.Profile._profile_None(), cmsRelvalreport.Profile._profile_valgrindfce(), cmsRelvalreport.Profile._save_output(), cmsswPreprocessor.CmsswPreprocessor.run(), and runall.testit.run().

runall.testit.nfail

Definition at line 14 of file runall.py.

Referenced by runall.testit.run(), and WorkFlowRunner.WorkFlowRunner.run().

runall.testit.npass

Definition at line 15 of file runall.py.

Referenced by runall.testit.run(), and WorkFlowRunner.WorkFlowRunner.run().

runall.testit.report

Definition at line 13 of file runall.py.

Referenced by dataset.Dataset.getPrimaryDatasetEntries(), runall.testit.run(), and addOnTests.testit.run().

runall.testit.status

Definition at line 12 of file runall.py.

Referenced by dirstructure.Comparison.__make_image(), and dirstructure.Comparison.__repr__().