aboutsummaryrefslogtreecommitdiffstats
path: root/csit/wait_for_port.sh
diff options
context:
space:
mode:
authorliamfallon <liam.fallon@est.tech>2022-09-08 09:56:47 +0100
committerLiam Fallon <liam.fallon@est.tech>2022-09-08 14:21:06 +0000
commitc4bd9e44e4c9a9aac1f54a490bc52d231136500c (patch)
tree628e854ef01d2ae34123c09aae14b5dc8eb3a391 /csit/wait_for_port.sh
parent841f9712e48828396faff6adcc1b20186e952430 (diff)
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 <liam.fallon@est.tech>
Diffstat (limited to 'csit/wait_for_port.sh')
-rwxr-xr-xcsit/wait_for_port.sh5
1 files changed, 5 insertions, 0 deletions
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=$?