|
| def | __init__ (self, ref, cause, result_key) |
| |
| def | __call__ (self, out, result) |
| |
| def | __init__ (self, ref, cause, result_key) |
| |
| def | __call__ (self, out, result) |
| |
Definition at line 587 of file BaseTest.py.
| def GaudiTesting.BaseTest.BasicOutputValidator.__init__ |
( |
|
self, |
|
|
|
ref, |
|
|
|
cause, |
|
|
|
result_key |
|
) |
| |
Definition at line 589 of file BaseTest.py.
def __init__(self, ref, cause, result_key)
| def GaudiTesting.BaseTest.BasicOutputValidator.__init__ |
( |
|
self, |
|
|
|
ref, |
|
|
|
cause, |
|
|
|
result_key |
|
) |
| |
Definition at line 589 of file BaseTest.py.
def __init__(self, ref, cause, result_key)
| def GaudiTesting.BaseTest.BasicOutputValidator.__call__ |
( |
|
self, |
|
|
|
out, |
|
|
|
result |
|
) |
| |
Validate the output of the program.
'stdout' -- A string containing the data written to the standard output
stream.
'stderr' -- A string containing the data written to the standard error
stream.
'result' -- A 'Result' object. It may be used to annotate
the outcome according to the content of stderr.
returns -- A list of strings giving causes of failure.
Definition at line 594 of file BaseTest.py.
595 """Validate the output of the program.
596 'stdout' -- A string containing the data written to the standard output
598 'stderr' -- A string containing the data written to the standard error
600 'result' -- A 'Result' object. It may be used to annotate
601 the outcome according to the content of stderr.
602 returns -- A list of strings giving causes of failure."""
607 causes.append(self.
cause)
def __call__(self, out, result)
def __CompareText(self, s1, s2)
| def GaudiTesting.BaseTest.BasicOutputValidator.__call__ |
( |
|
self, |
|
|
|
out, |
|
|
|
result |
|
) |
| |
Validate the output of the program.
'stdout' -- A string containing the data written to the standard output
stream.
'stderr' -- A string containing the data written to the standard error
stream.
'result' -- A 'Result' object. It may be used to annotate
the outcome according to the content of stderr.
returns -- A list of strings giving causes of failure.
Definition at line 594 of file BaseTest.py.
595 """Validate the output of the program.
596 'stdout' -- A string containing the data written to the standard output
598 'stderr' -- A string containing the data written to the standard error
600 'result' -- A 'Result' object. It may be used to annotate
601 the outcome according to the content of stderr.
602 returns -- A list of strings giving causes of failure."""
607 causes.append(self.
cause)
def __call__(self, out, result)
def __CompareText(self, s1, s2)
| def GaudiTesting.BaseTest.BasicOutputValidator.__CompareText |
( |
|
self, |
|
|
|
s1, |
|
|
|
s2 |
|
) |
| |
|
private |
Compare 's1' and 's2', ignoring line endings.
's1' -- A string.
's2' -- A string.
returns -- True if 's1' and 's2' are the same, ignoring
differences in line endings.
Definition at line 614 of file BaseTest.py.
615 """Compare 's1' and 's2', ignoring line endings.
618 returns -- True if 's1' and 's2' are the same, ignoring
619 differences in line endings."""
622 to_ignore = re.compile(
r'Warning in <TInterpreter::ReadRootmapFile>: .* is already in .*')
623 keep_line =
lambda l:
not to_ignore.match(l)
624 return filter(keep_line, s1.splitlines()) == filter(keep_line, s2.splitlines())
626 return s1.splitlines() == s2.splitlines()
def __CompareText(self, s1, s2)
def ROOT6WorkAroundEnabled
| def GaudiTesting.BaseTest.BasicOutputValidator.__CompareText |
( |
|
self, |
|
|
|
s1, |
|
|
|
s2 |
|
) |
| |
|
private |
Compare 's1' and 's2', ignoring line endings.
's1' -- A string.
's2' -- A string.
returns -- True if 's1' and 's2' are the same, ignoring
differences in line endings.
Definition at line 614 of file BaseTest.py.
615 """Compare 's1' and 's2', ignoring line endings.
618 returns -- True if 's1' and 's2' are the same, ignoring
619 differences in line endings."""
622 to_ignore = re.compile(
r'Warning in <TInterpreter::ReadRootmapFile>: .* is already in .*')
623 keep_line =
lambda l:
not to_ignore.match(l)
624 return filter(keep_line, s1.splitlines()) == filter(keep_line, s2.splitlines())
626 return s1.splitlines() == s2.splitlines()
def __CompareText(self, s1, s2)
def ROOT6WorkAroundEnabled
| GaudiTesting.BaseTest.BasicOutputValidator.cause |
| GaudiTesting.BaseTest.BasicOutputValidator.ref |
| GaudiTesting.BaseTest.BasicOutputValidator.result_key |
The documentation for this class was generated from the following file:
- InstallArea/x86_64-slc6-gcc48-opt/python/GaudiTesting/BaseTest.py