Mercurial > kallithea
changeset 5970:10d7b01af4f0
tests: make debug output from manual_test_vcs_operations Command.execute less noisy
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Tue, 14 Jun 2016 01:16:12 +0200 |
parents | 5ca5379641d0 |
children | a5a16aad6b3e |
files | kallithea/tests/other/manual_test_vcs_operations.py |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/tests/other/manual_test_vcs_operations.py Tue Jun 14 01:15:53 2016 +0200 +++ b/kallithea/tests/other/manual_test_vcs_operations.py Tue Jun 14 01:16:12 2016 +0200 @@ -71,8 +71,10 @@ p = Popen(command, shell=True, stdout=PIPE, stderr=PIPE, cwd=self.cwd, env=testenv) stdout, stderr = p.communicate() if DEBUG: - print 'stdout:', repr(stdout) - print 'stderr:', repr(stderr) + if stdout: + print 'stdout:', repr(stdout) + if stderr: + print 'stderr:', repr(stderr) return stdout, stderr