Commit 5ac20ab9 authored by Vadim Rutkovsky's avatar Vadim Rutkovsky

tests: don't attach empty stdout / stderr

parent 25a66ff7
......@@ -69,8 +69,11 @@ def after_scenario(context, scenario):
stdout = non_block_read(context.app_class.process.stdout)
stderr = non_block_read(context.app_class.process.stderr)
context.embed('text/plain', '\n'.join(stdout))
context.embed('text/plain', '\n'.join(stderr))
if stdout:
context.embed('text/plain', stdout)
if stderr:
context.embed('text/plain', stderr)
# Make some pause after scenario
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