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
parent a1d201cd
...@@ -73,11 +73,15 @@ class QMTTest(BaseTest): ...@@ -73,11 +73,15 @@ class QMTTest(BaseTest):
return apply(self.callable, args, kwargs) return apply(self.callable, args, kwargs)
# local names to be exposed in the script # 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, exported_symbols = {"self": self,
"stdout": stdout, "stdout": stdout,
"stderr": stderr, "stderr": stderr,
"result": result, "result": result,
"causes": self.causes, "causes": self.causes,
"reference": stdout_ref,
"error_reference": stderr_ref,
"findReferenceBlock": "findReferenceBlock":
CallWrapper(self.findReferenceBlock, CallWrapper(self.findReferenceBlock,
{"stdout": stdout, {"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