Skip to content

Commit

Permalink
Add some more logging to test of tls_proxy cli util
Browse files Browse the repository at this point in the history
Debugging #4112
  • Loading branch information
randombit committed Jun 15, 2024
1 parent 2fc362d commit d82af47
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/scripts/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1378,6 +1378,14 @@ 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)

logging.error('Unexpected return code from tls_proxy %d', rc)

def cli_trust_root_tests(tmp_dir):
Expand Down

0 comments on commit d82af47

Please sign in to comment.