diff options
author | Gary Wu <gary.i.wu@huawei.com> | 2018-09-21 14:50:38 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-09-21 14:50:38 +0000 |
commit | 38b3f388cba07d72f75ef1ef676e31e15081d695 (patch) | |
tree | 6133576d23c696e52699ea859e3acc758ba6c9d8 /test/csit/plans | |
parent | 757b5cc3897bdc61cc085bea05fe13a1f7a440d0 (diff) | |
parent | 2002517aeadd62d3ce73b7b20fc6e0f1397bf5b1 (diff) |
Merge "Add check for memory leak detection"
Diffstat (limited to 'test/csit/plans')
-rwxr-xr-x | test/csit/plans/dcaegen2-collectors-hv-ves/testsuites/teardown.sh | 10 |
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 |