From 974bafe31c1cabf9b044644739d4ab2676d58d34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Meusel?= Date: Mon, 24 Jun 2024 12:55:00 +0200 Subject: [PATCH] always log output of tls_proxy --- src/scripts/test_cli.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/scripts/test_cli.py b/src/scripts/test_cli.py index e144a43b777..4cf7947d2c3 100755 --- a/src/scripts/test_cli.py +++ b/src/scripts/test_cli.py @@ -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):