summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordanielhanrahan <daniel.hanrahan@est.tech>2024-07-12 11:58:40 +0100
committerdanielhanrahan <daniel.hanrahan@est.tech>2024-07-12 12:04:06 +0100
commit1519ce5850a4a1f127d18ebf8b37e4a96d365a28 (patch)
tree5c8eabc7c2e7a0440d944486d8f082ebee2f91d4
parentf2b8ca288f2048dc1770581a6b97397535931abf (diff)
Print docker logs in CSITs for 2 cps-and-ncmp instances
Following introduction of 2 instances of cps-and-ncmp, CSIT logs show an error "No such container: cps-and-ncmp". This commit prints docker logs for each cps-and-ncmp container. Issue-ID: CPS-2038 Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech> Change-Id: If3ed4590cef0f5b59d74e62c84f6c6e72edfd411
-rwxr-xr-xcsit/plans/cps/teardown.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/csit/plans/cps/teardown.sh b/csit/plans/cps/teardown.sh
index 7beb90722e..30732df2d8 100755
--- a/csit/plans/cps/teardown.sh
+++ b/csit/plans/cps/teardown.sh
@@ -17,14 +17,17 @@
# Modifications copyright (c) 2017 AT&T Intellectual Property
# Modifications copyright (c) 2020 Samsung Electronics Co., Ltd.
# Modifications Copyright (C) 2021 Pantheon.tech
-# Modifications Copyright (C) 2021 Nordix Foundation
+# Modifications Copyright (C) 2021-2024 Nordix Foundation
# Branched from ccsdk/distribution to this repository Feb 23, 2021
#
echo '================================== docker info =========================='
docker ps -a
echo '================================== CPS-NCMP Logs ========================'
-docker logs cps-and-ncmp
+for CONTAINER_ID in $(docker ps --filter "name=cps-and-ncmp" --format "{{.ID}}"); do
+ echo "CPS-NCMP Logs for container: $CONTAINER_ID"
+ docker logs "$CONTAINER_ID"
+done
echo '================================== DMI Logs ============================='
docker logs ncmp-dmi-plugin