aboutsummaryrefslogtreecommitdiffstats
path: root/test/csit/plans
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2018-09-21 14:50:38 +0000
committerGerrit Code Review <gerrit@onap.org>2018-09-21 14:50:38 +0000
commit38b3f388cba07d72f75ef1ef676e31e15081d695 (patch)
tree6133576d23c696e52699ea859e3acc758ba6c9d8 /test/csit/plans
parent757b5cc3897bdc61cc085bea05fe13a1f7a440d0 (diff)
parent2002517aeadd62d3ce73b7b20fc6e0f1397bf5b1 (diff)
Merge "Add check for memory leak detection"
Diffstat (limited to 'test/csit/plans')
-rwxr-xr-xtest/csit/plans/dcaegen2-collectors-hv-ves/testsuites/teardown.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/csit/plans/dcaegen2-collectors-hv-ves/testsuites/teardown.sh b/test/csit/plans/dcaegen2-collectors-hv-ves/testsuites/teardown.sh
index 84d36667e..246fb8363 100755
--- a/test/csit/plans/dcaegen2-collectors-hv-ves/testsuites/teardown.sh
+++ b/test/csit/plans/dcaegen2-collectors-hv-ves/testsuites/teardown.sh
@@ -4,8 +4,14 @@ cd ssl
make clean
cd ..
-docker-compose logs > ${WORKSPACE}/archives/containers_logs/docker-compose.log
+COMPOSE_LOGS_FILE=${WORKSPACE}/archives/containers_logs/docker-compose.log
+docker-compose logs > ${COMPOSE_LOGS_FILE}
docker-compose down
docker-compose rm -f
-docker network rm ${CONTAINERS_NETWORK} \ No newline at end of file
+docker network rm ${CONTAINERS_NETWORK}
+
+if grep "LEAK:" ${COMPOSE_LOGS_FILE}; then
+ echo "Teardown failed. Memory leak detected in docker-compose logs."
+ exit 1
+fi