Definition at line 594 of file GaudiTest.py.
def GaudiTest.ReferenceFileValidator.__init__ |
( |
|
self, |
|
|
|
reffile, |
|
|
|
cause, |
|
|
|
result_key, |
|
|
|
preproc = normalizeExamples |
|
) |
| |
Definition at line 595 of file GaudiTest.py.
595 def __init__(self, reffile, cause, result_key, preproc = normalizeExamples):
def __init__(self, reffile, cause, result_key, preproc=normalizeExamples)
def GaudiTest.ReferenceFileValidator.__call__ |
( |
|
self, |
|
|
|
stdout, |
|
|
|
result |
|
) |
| |
Definition at line 600 of file GaudiTest.py.
602 if os.path.isfile(self.
reffile):
603 orig = open(self.
reffile).xreadlines()
609 new = stdout.splitlines()
613 diffs = difflib.ndiff(orig,new,charjunk=difflib.IS_CHARACTER_JUNK)
614 filterdiffs =
map(
lambda x: x.strip(),filter(
lambda x: x[0] !=
" ",diffs))
617 result[self.
result_key] = result.Quote(
"\n".join(filterdiffs))
621 +) standard output of the test""")
622 causes.append(self.
cause)
struct GAUDI_API map
Parametrisation class for map-like implementation.
def __call__(self, stdout, result)
GaudiTest.ReferenceFileValidator.cause |
GaudiTest.ReferenceFileValidator.preproc |
GaudiTest.ReferenceFileValidator.reffile |
GaudiTest.ReferenceFileValidator.result_key |
The documentation for this class was generated from the following file: