diff options
author | danielhanrahan <daniel.hanrahan@est.tech> | 2024-07-12 11:58:40 +0100 |
---|---|---|
committer | danielhanrahan <daniel.hanrahan@est.tech> | 2024-07-12 12:04:06 +0100 |
commit | 1519ce5850a4a1f127d18ebf8b37e4a96d365a28 (patch) | |
tree | 5c8eabc7c2e7a0440d944486d8f082ebee2f91d4 /csit/plans | |
parent | f2b8ca288f2048dc1770581a6b97397535931abf (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
Diffstat (limited to 'csit/plans')
-rwxr-xr-x | csit/plans/cps/teardown.sh | 7 |
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 |