From c725ba9714451920e726a7c65148d5660435609c Mon Sep 17 00:00:00 2001 From: "David H. Irving" Date: Wed, 15 Nov 2023 16:31:03 -0700 Subject: [PATCH] output logs from docker container --- tests_integration/test_docker_container.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests_integration/test_docker_container.py b/tests_integration/test_docker_container.py index 96d8997958..9dc192799f 100644 --- a/tests_integration/test_docker_container.py +++ b/tests_integration/test_docker_container.py @@ -34,6 +34,13 @@ def _run_server_docker(): server_port = container.get_exposed_port(port) server_url = f"http://{server_host}:{server_port}/api/butler" yield server_url + (stdout, stderr) = container.get_logs() + if stdout: + print("STDOUT:") + print(stdout) + if stderr: + print("STDERR:") + print(stderr) class ButlerDockerTestCase(unittest.TestCase):