diff --git a/py/test/rsession/local.py b/py/test/rsession/local.py index 52ac586b0..4e9087ed3 100644 --- a/py/test/rsession/local.py +++ b/py/test/rsession/local.py @@ -37,11 +37,16 @@ def benchmark_runner(item, session, reporter): raise NotImplementedError() def apigen_runner(item, session, reporter): + r = RunExecutor(item, reporter=reporter, config=session.config) + startcapture(session) + #retval = plain_runner(item, session, reporter) r = RunExecutor(item, reporter=reporter, config=session.config) session.tracer.start_tracing() - retval = plain_runner(item, session, reporter) + outcome = r.execute() session.tracer.end_tracing() - return retval + outcome = ReprOutcome(outcome.make_repr(session.config.option.tbstyle)) + outcome.stdout, outcome.stderr = finishcapture(session) + return outcome def exec_runner(item, session, reporter): raise NotImplementedError()