Commit c7690f7b authored by Marco Clemencic's avatar Marco Clemencic
Browse files

added stdout and stderr reference filenames to .qmt validators

In the Python code for .qmt validators it is possible to access the
reference filenames for stdout and stderr as `reference` and
`error_reference`.
parent a1d201cd
......@@ -73,11 +73,15 @@ class QMTTest(BaseTest):
return apply(self.callable, args, kwargs)
# local names to be exposed in the script
stdout_ref = self._expandReferenceFileName(self.reference)
stderr_ref = self._expandReferenceFileName(self.error_reference)
exported_symbols = {"self": self,
"stdout": stdout,
"stderr": stderr,
"result": result,
"causes": self.causes,
"reference": stdout_ref,
"error_reference": stderr_ref,
"findReferenceBlock":
CallWrapper(self.findReferenceBlock,
{"stdout": stdout,
......
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