From f38c5aced00dc316aaba7893a1f7ab7c37ab23b9 Mon Sep 17 00:00:00 2001 From: yanhuanwang Date: Tue, 17 Sep 2019 18:02:14 +0200 Subject: Add application.log to console Change-Id: I460152ca18de3ec1ec7e7035a932aa0f1e1f6be0 Signed-off-by: yanhuanwang Issue-ID: DCAEGEN2-1702 --- plans/dcaegen2-collectors-datafile/Functional-suite/teardown.sh | 2 +- .../dcaegen2-collectors-datafile/ManagementInterface-suite/teardown.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'plans/dcaegen2-collectors-datafile') diff --git a/plans/dcaegen2-collectors-datafile/Functional-suite/teardown.sh b/plans/dcaegen2-collectors-datafile/Functional-suite/teardown.sh index eaebbc24..81d85fe5 100644 --- a/plans/dcaegen2-collectors-datafile/Functional-suite/teardown.sh +++ b/plans/dcaegen2-collectors-datafile/Functional-suite/teardown.sh @@ -2,7 +2,7 @@ running_containers=$(docker ps --filter name=dfc_ -qa) running_images=$(docker images -q) -docker exec -it dfc_app0 cat /var/log/ONAP/application.log >> $WORKSPACE/archives/dfc_app0_application.log +docker exec dfc_app0 cat /var/log/ONAP/application.log >> $WORKSPACE/archives/dfc_app0_application.log docker logs dfc_mr-sim >> $WORKSPACE/archives/dfc_mr-sim.log if [ -z "$running_containers" ] diff --git a/plans/dcaegen2-collectors-datafile/ManagementInterface-suite/teardown.sh b/plans/dcaegen2-collectors-datafile/ManagementInterface-suite/teardown.sh index d8877fbc..23581a02 100644 --- a/plans/dcaegen2-collectors-datafile/ManagementInterface-suite/teardown.sh +++ b/plans/dcaegen2-collectors-datafile/ManagementInterface-suite/teardown.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash set +e -docker exec -it dfc_app0 cat /var/log/ONAP/application.log > $WORKSPACE/archives/dfc_app0_application.log +docker exec dfc_app0 cat /var/log/ONAP/application.log > $WORKSPACE/archives/dfc_app0_application.log kill-instance.sh dfc_app0 set -e exit 0 -- cgit 1.2.3-korg