diff options
author | Alexander Dehn <alexander.dehn@highstreet-technologies.com> | 2022-04-28 16:14:09 +0000 |
---|---|---|
committer | Alexander Dehn <alexander.dehn@highstreet-technologies.com> | 2022-04-28 16:43:53 +0000 |
commit | 9d8ae6d68ea8427052ec45326e22f3a2ea7ed081 (patch) | |
tree | aa20199a924275a7b48eb508001bc143385bc7d7 /csit/scripts/sdnr/sdnr-teardown.sh | |
parent | 427fac36830315046ac811cadde056fabb8c60f9 (diff) |
Refactore SDNC/R robot test suite for K-Release
add improvements SDNC ready state detection
Issue-ID: SDNC-1682
Signed-off-by: Alexander Dehn <alexander.dehn@highstreet-technologies.com>
Change-Id: I6b9829b5187f9c27ff9c2fab6b9a7381ce563b25
Former-commit-id: 83da3b4380d992d5891ed8e35b305358db9af4ff
Diffstat (limited to 'csit/scripts/sdnr/sdnr-teardown.sh')
-rwxr-xr-x | csit/scripts/sdnr/sdnr-teardown.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/csit/scripts/sdnr/sdnr-teardown.sh b/csit/scripts/sdnr/sdnr-teardown.sh index eeb729e0..02e8beeb 100755 --- a/csit/scripts/sdnr/sdnr-teardown.sh +++ b/csit/scripts/sdnr/sdnr-teardown.sh @@ -15,6 +15,7 @@ # limitations under the License. # # Modifications copyright (c) 2018 AT&T Intellectual Property +# Modifications copyright (C) 2022 highstreet technologies GmbH Intellectual Property # if [[ -z $WORKSPACE ]]; then @@ -37,7 +38,7 @@ source ${SCRIPTS}/sdnr/sdnrEnv_Common.sh env_file="--env-file ${SCRIPTS}/sdnr/docker-compose/.env" function sdnr_teardown() { - running_containers=$(docker ps -aq) + running_containers=$(docker ps -a --format "{{.Names}}") if [ -z "$running_containers" ] then echo "No containers to get logs from!" @@ -50,6 +51,7 @@ function sdnr_teardown() { echo "Getting logs from container $i" docker logs $i >> ${WORKSPACE}/archives/getallinfo/$i.log 2>&1 done + docker cp sdnr:/opt/opendaylight/data/log/karaf.log ${WORKSPACE}/archives/getallinfo/sdnr_karaf.log fi echo "Starting teardown!" # removes sdnrdb, sdnr AND all of the rest of the containers (--remove-orphans) |