summaryrefslogtreecommitdiffstats
path: root/k6-tests
diff options
context:
space:
mode:
authorhalil.cakal <halil.cakal@est.tech>2025-02-17 10:15:59 +0000
committerhalil.cakal <halil.cakal@est.tech>2025-02-17 16:00:17 +0000
commit5f00f0cff15d7db8bb6511e8fd6d382a1de756eb (patch)
treef6356a3d906907a9303289a23d894937ec9c0eeb /k6-tests
parent544438c3110eebbdd8c8e0eb8fea0d8d1eb02967 (diff)
Enable the container logs and disable the container restart for
cps-and-ncmp Issue-ID: CPS-2643 Change-Id: I57ba18dcaa71f4c2c5d985e9c870569e40d26880 Signed-off-by: halil.cakal <halil.cakal@est.tech>
Diffstat (limited to 'k6-tests')
-rwxr-xr-xk6-tests/teardown.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/k6-tests/teardown.sh b/k6-tests/teardown.sh
index c3233919dc..10db7ac7e0 100755
--- a/k6-tests/teardown.sh
+++ b/k6-tests/teardown.sh
@@ -1,6 +1,6 @@
#!/bin/bash
#
-# Copyright 2024 Nordix Foundation.
+# Copyright 2024-2025 Nordix Foundation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -18,6 +18,12 @@
echo '================================== docker info =========================='
docker ps -a
+echo '================================== CPS-NCMP Logs ========================'
+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
+
testProfile=$1
docker_compose_shutdown_cmd="docker-compose -f ../docker-compose/docker-compose.yml --profile dmi-stub --project-name $testProfile down --volumes"