From c4bd9e44e4c9a9aac1f54a490bc52d231136500c Mon Sep 17 00:00:00 2001 From: liamfallon Date: Thu, 8 Sep 2022 09:56:47 +0100 Subject: Improve debugging support for CSITs The following improvements are added: - "docker ps" command added to the wait_for_port.sh script tp show status of the containers coming up and down - "docker-compose logs" added to the end of the test runs to print out the standard output from the containers - Add standard output logging to all containers - Some cleanup and use of better names Issue-ID: POLICY-4350 Change-Id: I3ae8c59dba64f9c267f310366bb4a2a6ffd5d418 Signed-off-by: liamfallon --- csit/run-project-csit.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'csit/run-project-csit.sh') diff --git a/csit/run-project-csit.sh b/csit/run-project-csit.sh index b5ddc8ed..fd20c6af 100755 --- a/csit/run-project-csit.sh +++ b/csit/run-project-csit.sh @@ -31,10 +31,13 @@ function on_exit(){ rsync -av "${WORKDIR}/" "${WORKSPACE}/csit/archives/${PROJECT}" fi # Record list of active docker containers - docker ps --format "{{.Image}}" > "${WORKSPACE}/csit/archives/${PROJECT}/_docker-images.log" + docker ps + + # Show the logs from all containers + docker-compose -f "${WORKSPACE}/csit/docker-compose-all.yml" logs # show memory consumption after all docker instances initialized - docker_stats | tee "${WORKSPACE}/csit/archives/${PROJECT}/_sysinfo-2-after-robot.txt" + docker_stats fi # Run teardown script plan if it exists cd "${TESTPLANDIR}/plans/" -- cgit 1.2.3-korg