From 1519ce5850a4a1f127d18ebf8b37e4a96d365a28 Mon Sep 17 00:00:00 2001 From: danielhanrahan Date: Fri, 12 Jul 2024 11:58:40 +0100 Subject: 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 Change-Id: If3ed4590cef0f5b59d74e62c84f6c6e72edfd411 --- csit/plans/cps/teardown.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'csit/plans') 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 -- cgit 1.2.3-korg