Commit e19eda2e authored by Rafael Monnerat's avatar Rafael Monnerat

runnertest: Verbose data via Print while run tests.

parent dc55d680
...@@ -591,6 +591,11 @@ class SlaprunnerTestCase(unittest.TestCase): ...@@ -591,6 +591,11 @@ class SlaprunnerTestCase(unittest.TestCase):
os.environ['RUNNER_CONFIG'] = runner_config_old os.environ['RUNNER_CONFIG'] = runner_config_old
class PrintStringIO(StringIO.StringIO):
def write(self, data):
StringIO.write(self, data)
print data
def main(): def main():
""" """
Function meant to be run by erp5testnode. Function meant to be run by erp5testnode.
...@@ -618,7 +623,7 @@ def main(): ...@@ -618,7 +623,7 @@ def main():
start_time = time.time() start_time = time.time()
stderr = StringIO.StringIO() stderr = PrintStringIO()
suite = unittest.TestLoader().loadTestsFromTestCase(SlaprunnerTestCase) suite = unittest.TestLoader().loadTestsFromTestCase(SlaprunnerTestCase)
test_result = unittest.TextTestRunner(verbosity=2, stream=stderr).run(suite) test_result = unittest.TextTestRunner(verbosity=2, stream=stderr).run(suite)
......
Markdown is supported
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