From 2002517aeadd62d3ce73b7b20fc6e0f1397bf5b1 Mon Sep 17 00:00:00 2001 From: Filip Krzywka Date: Thu, 20 Sep 2018 12:33:27 +0200 Subject: Add check for memory leak detection Change-Id: Ifb70e1409dbd5df4207f83cbf2268dd5355e1bd5 Issue-ID: DCAEGEN2-815 Signed-off-by: Filip Krzywka --- .../plans/dcaegen2-collectors-hv-ves/testsuites/teardown.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'test/csit/plans') 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 -- cgit 1.2.3-korg