Skip to content

Commit

Permalink
always log output of tls_proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
reneme committed Jun 24, 2024
1 parent ac8be52 commit 974bafe
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/scripts/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1375,15 +1375,15 @@ def do_GET(self): # pylint: disable=invalid-name

rc = tls_proxy.wait(5)

if rc != 0:
# Trying to debug https://github.com/randombit/botan/issues/4112
stdout = tls_proxy.stdout.read().decode('utf8')
if stdout != '':
logging.info('Stdout: %s', stdout)
stderr = tls_proxy.stderr.read().decode('utf8')
if stdout != '':
logging.info('Stderr: %s', stderr)
# Trying to debug https://github.com/randombit/botan/issues/4112
stdout = tls_proxy.stdout.read().decode('utf8')
if stdout != '':
logging.info('Stdout: %s', stdout)
stderr = tls_proxy.stderr.read().decode('utf8')
if stdout != '':
logging.info('Stderr: %s', stderr)

if rc != 0:
logging.error('Unexpected return code from tls_proxy %d', rc)

def cli_trust_root_tests(tmp_dir):
Expand Down

0 comments on commit 974bafe

Please sign in to comment.