Commit 62598c4d authored by Marco Clemencic's avatar Marco Clemencic
Browse files

Extend gaudi/Gaudi!734 to stderr reference files

parent 3345c120
......@@ -487,11 +487,14 @@ class BaseTest(object):
# check standard error
lreference = self._expandReferenceFileName(self.error_reference)
# call the validator if we have a file to use
if lreference and os.path.isfile(lreference):
newcauses = ReferenceFileValidator(lreference,
"standard error",
"Error Diff",
preproc=preproc)(stderr, result)
if lreference:
if os.path.isfile(lreference):
newcauses = ReferenceFileValidator(lreference,
"standard error",
"Error Diff",
preproc=preproc)(stderr, result)
else:
newcauses += ["missing error reference file"]
causes += newcauses
if newcauses: # Write a new reference file for stdedd
newref = open(lreference + ".new", "w")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment