From d69d98e868f9029993f9fd288a58a0f9ceed3522 Mon Sep 17 00:00:00 2001
From: Valentin Lorentz <vlorentz@softwareheritage.org>
Date: Thu, 19 Nov 2020 09:22:13 +0100
Subject: [PATCH] Run 'docker-compose logs' while tests are running

---
 docker/tests/run_tests.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/docker/tests/run_tests.sh b/docker/tests/run_tests.sh
index b6e00c3..4a6b000 100755
--- a/docker/tests/run_tests.sh
+++ b/docker/tests/run_tests.sh
@@ -165,6 +165,9 @@ listen_docker_events $$ &
 status_message "Starting swh docker-compose environment"
 docker-compose $DOCO_OPTIONS up -d
 
+# Print logs to stdout
+docker-compose $DOCO_OPTIONS logs -f &
+
 # Ensure all swh services are up before running tests
 status_message "Waiting for swh services to be up"
 docker-compose $DOCO_OPTIONS exec -T swh-storage wait-for-it localhost:5002 -s --timeout=0
-- 
GitLab