From 96c3e6fb9305c0e2561950ecb386cfa507e56228 Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Mon, 18 Oct 2021 03:18:51 +0200 Subject: [PATCH] ci: add debugging message --- .github/integration-test.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/integration-test.py b/.github/integration-test.py index ab6f83e..e473d97 100755 --- a/.github/integration-test.py +++ b/.github/integration-test.py @@ -95,6 +95,10 @@ def run_test(image_name, test_name, bootstrap_pip_spec, test_files, upgrade, ins copy_to_container(test_name, os.path.join(source_path, 'bootstrap/.'), '/srv/src') copy_to_container(test_name, os.path.join(source_path, 'integration-tests/'), '/srv/src') + # These logs can be very relevant to debug a container startup failure + print(f"--- Start of logs from the container: {test_name}") + print(subprocess.check_output(['docker', 'logs', test_name]).decode()) + print(f"--- End of logs from the container: {test_name}") # Install TLJH from the default branch first to test upgrades if upgrade: