diff options
author | Vadim Rutkovsky <vrutkovs@redhat.com> | 2014-06-11 07:27:53 +0800 |
---|---|---|
committer | Vadim Rutkovsky <vrutkovs@redhat.com> | 2014-06-11 07:30:52 +0800 |
commit | 5ac20ab9655450c26f0ac744b1c6d1ab8bdce2b4 (patch) | |
tree | a52f146da38faac7a0e1e4ab54eaa725cb2ee246 | |
parent | 25a66ff7f4610649e684b9395601ce092d72df97 (diff) | |
download | gsoc2013-evolution-5ac20ab9655450c26f0ac744b1c6d1ab8bdce2b4.tar gsoc2013-evolution-5ac20ab9655450c26f0ac744b1c6d1ab8bdce2b4.tar.gz gsoc2013-evolution-5ac20ab9655450c26f0ac744b1c6d1ab8bdce2b4.tar.bz2 gsoc2013-evolution-5ac20ab9655450c26f0ac744b1c6d1ab8bdce2b4.tar.lz gsoc2013-evolution-5ac20ab9655450c26f0ac744b1c6d1ab8bdce2b4.tar.xz gsoc2013-evolution-5ac20ab9655450c26f0ac744b1c6d1ab8bdce2b4.tar.zst gsoc2013-evolution-5ac20ab9655450c26f0ac744b1c6d1ab8bdce2b4.zip |
tests: don't attach empty stdout / stderr
-rw-r--r-- | tests/environment.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/environment.py b/tests/environment.py index 13b35a453c..767bf6b6aa 100644 --- a/tests/environment.py +++ b/tests/environment.py @@ -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 sleep(1) |