docker-playground/ttcn3-bsc-test
Oliver Smith 12b961942a jenkins-common.sh: add common clean up trap
Add set_clean_up_trap() in jenkins-common.sh and run it at the beginning
of the jenkins.sh files. Move the common clean up code from the end of
every jenkins.sh file into clean_up_common(), which gets called by the
trap. Add a custom clean_up() function to those jenkins.sh files that
need additional clean up.

Replace explicit container stop commands (for containers attached to the
docker network) with one call to network_clean() in clean_up_common(). It
kills all containers attached to the docker network.

The motivation for this change is the upcoming optional build of initrd
and kernel during ttcn3-ggsn-test/jenkins.sh. After building these, a
short smoke test will be performed to make sure we can boot the kernel
and initrd, before continuing to run the entire testsuite against it. If
building or the smoke test fails, we must do a proper clean up of the
network and fix permissions.

Related: OS#3208
Change-Id: I807c6221d22fec31db23e2516e477a3eb43347fb
2021-02-26 09:32:06 +01:00
..
sccplite bsc: add mp_enable_lcs_tests := false 2020-10-15 00:56:15 +00:00
.release add ttcn3-bsc-test container with osmo-bsc test suite 2017-12-17 17:21:04 +01:00
BSC_Tests.cfg bsc: enable LCS tests for normal bsc master tests 2020-10-15 04:11:04 +00:00
Dockerfile ttcn3: use REGISTRY arg with debian-stretch-titan 2021-02-11 16:27:23 +01:00
Makefile move every 'test network' to its own IP address space 2018-02-06 19:08:45 +01:00
jenkins-sccplite.sh jenkins-common.sh: add common clean up trap 2021-02-26 09:32:06 +01:00
jenkins.sh jenkins-common.sh: add common clean up trap 2021-02-26 09:32:06 +01:00
osmo-bsc.cfg bsc: add missing 'smlc / enable' for LCS tests 2020-10-16 15:49:04 +02:00
osmo-stp.cfg bsc: enable Lb routing between BSC <-> virtual SMLC 2020-10-15 00:57:45 +00:00