osmith has uploaded this change for review.

View Change

5gc,hss,pcrf: remove mongodb when done

Fix that each of these jobs leaves a "db" directory in the logs dir,
that is the whole mongodb database. In case of 5gc it is 300 MiB in
size, which quickly turns into several GiB in the build artifacts.

Example db dir:
https://jenkins.osmocom.org/jenkins/job/ttcn3-5gc-test-ogs/ws/logs/db/db/

Change-Id: I0f6ebaa45e1cada1e1141c127999db6f181ee066
---
M 5gc/testenv.cfg
M hss/testenv_open5gs.cfg
M pcrf/testenv.cfg
3 files changed, 3 insertions(+), 0 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/01/43901/1
diff --git a/5gc/testenv.cfg b/5gc/testenv.cfg
index 2008d9a..27199cb 100644
--- a/5gc/testenv.cfg
+++ b/5gc/testenv.cfg
@@ -7,6 +7,7 @@

[db]
prepare=mkdir db
+clean=rm -rf db
program=mongod --config mongod.conf
setup=create_test_subscribers.sh
copy=mongod.conf
diff --git a/hss/testenv_open5gs.cfg b/hss/testenv_open5gs.cfg
index 79ccede..79b6ec3 100644
--- a/hss/testenv_open5gs.cfg
+++ b/hss/testenv_open5gs.cfg
@@ -4,6 +4,7 @@

[db]
prepare=mkdir db
+clean=rm -rf db
program=mongod --config mongod.conf
setup=create_test_subscribers.sh
copy=mongod.conf
diff --git a/pcrf/testenv.cfg b/pcrf/testenv.cfg
index 221e4a9..487f618 100644
--- a/pcrf/testenv.cfg
+++ b/pcrf/testenv.cfg
@@ -4,6 +4,7 @@

[db]
prepare=mkdir db
+clean=rm -rf db
program=mongod --config mongod.conf
setup=create_test_subscribers.sh
copy=mongod.conf

To view, visit change 43901. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I0f6ebaa45e1cada1e1141c127999db6f181ee066
Gerrit-Change-Number: 43901
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith@sysmocom.de>