From a4eecb6bed605aab4f19d9a4de23aff5dc4c8ed4 Mon Sep 17 00:00:00 2001 From: Craig Pfeifer Date: Sun, 15 Dec 2024 18:57:57 -0500 Subject: [PATCH] adding debug logging --- tests/test_readme.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_readme.py b/tests/test_readme.py index 6c9aab490b..0ed5eb7e9a 100644 --- a/tests/test_readme.py +++ b/tests/test_readme.py @@ -183,6 +183,8 @@ def test_serve(): def run_server(): nonlocal process + + stdout, stderr = "" try: print (f"Running command {run_command}") process = subprocess.Popen(run_command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True) @@ -195,6 +197,9 @@ def run_server(): except Exception as e: print (e) raise e + finally: + print (f"stdout : {stdout}") + print(f"stderr : {stderr}") server_thread = threading.Thread(target=run_server) server_thread.start()