aboutsummaryrefslogtreecommitdiffstats
path: root/test/csit/plans/dcaegen2-collectors-hv-ves/testsuites/teardown.sh
diff options
context:
space:
mode:
authorFilip Krzywka <filip.krzywka@nokia.com>2018-09-20 12:33:27 +0200
committerFilip Krzywka <filip.krzywka@nokia.com>2018-09-21 08:04:58 +0000
commit2002517aeadd62d3ce73b7b20fc6e0f1397bf5b1 (patch)
tree00c93281751bbd33feb761e3e22bde6ad150e19b /test/csit/plans/dcaegen2-collectors-hv-ves/testsuites/teardown.sh
parent7df359505604e20c17a81211607e254f3d0a6643 (diff)
Add check for memory leak detection
Change-Id: Ifb70e1409dbd5df4207f83cbf2268dd5355e1bd5 Issue-ID: DCAEGEN2-815 Signed-off-by: Filip Krzywka <filip.krzywka@nokia.com>
Diffstat (limited to 'test/csit/plans/dcaegen2-collectors-hv-ves/testsuites/teardown.sh')
-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