|
| | refFile = argdict.get('ReferenceFile') |
| | newFile = argdict.get('NewFile') |
Definition at line 9 of file CompareJetTestFiles.py.
◆ __init__()
| python.CompareJetTestFiles.CompareJetTestFiles.__init__ |
( |
| self, |
|
|
| argdict = {} ) |
Definition at line 10 of file CompareJetTestFiles.py.
10 def __init__(self,argdict={}):
11 testIdentifier = argdict.get('testIdentifierObj')
12 self.refFile = argdict.get('ReferenceFile')
13 self.newFile = argdict.get('NewFile')
14 logFile = argdict.get('LogFile')
15
16
17
18 cmd = os.path.join( JetValidation.__path__[0], "CompareJetTestFilesExec.py") + " %s %s" % (self.refFile,self.newFile)
19 ExeRunnerBase.__init__(self,cmd,testIdentifier,logFile)
20
◆ run()
| python.CompareJetTestFiles.CompareJetTestFiles.run |
( |
| self | ) |
|
Definition at line 21 of file CompareJetTestFiles.py.
22 bad_refFile = not os.path.exists(self.refFile)
23 bad_newFile = not os.path.exists(self.newFile)
24 msg = ''
25 msgTpl = '%s: file does not exist, not running'
26 if bad_refFile:
27 msg += msgTpl % self.refFile
28 if bad_newFile:
29 msg += msgTpl % self.newFile
30
31
32 if msg:
33 tr = TestResult(msg)
34 self.testResults.append(tr)
35 return
36
37
38
39
40
41
42
43
44 ExeRunnerBase.run(self)
◆ newFile
| python.CompareJetTestFiles.CompareJetTestFiles.newFile = argdict.get('NewFile') |
◆ refFile
| python.CompareJetTestFiles.CompareJetTestFiles.refFile = argdict.get('ReferenceFile') |
The documentation for this class was generated from the following file: