Changeset - ed9fea79a321
[Not reviewed]
default
0 1 0
Mads Kiilerich - 7 years ago 2019-01-16 03:11:06
mads@kiilerich.com
Grafted from: d6f3577e45c2
tests: better debugging of failing vcs Commands - show the actual output, not the repr
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
kallithea/tests/other/test_vcs_operations.py
Show inline comments
 
@@ -70,15 +70,15 @@ class Command(object):
 
        testenv['HGRCPATH'] = ''
 
        testenv.update(environ)
 
        p = Popen(command, shell=True, stdout=PIPE, stderr=PIPE, cwd=self.cwd, env=testenv)
 
        stdout, stderr = p.communicate()
 
        if DEBUG:
 
            if stdout:
 
                print 'stdout:', repr(stdout)
 
                print 'stdout:', stdout
 
            if stderr:
 
                print 'stderr:', repr(stderr)
 
                print 'stderr:', stderr
 
        if not ignoreReturnCode:
 
            assert p.returncode == 0
 
        return stdout, stderr
 

	
 

	
 
def _get_tmp_dir(prefix='vcs_operations-', suffix=''):
0 comments (0 inline, 0 general)