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/wait_for_port.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'csit/wait_for_port.sh') diff --git a/csit/wait_for_port.sh b/csit/wait_for_port.sh index 0a9adc3a..5a8be250 100755 --- a/csit/wait_for_port.sh +++ b/csit/wait_for_port.sh @@ -62,6 +62,11 @@ do while [ "$tmout" -gt 0 ] do + if command -v docker > /dev/null 2>&1 + then + docker ps + fi + nc -vz "$host" "$port" rc=$? -- cgit 1.2.3-korg