aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2019-12-01 22:07:24 +0100
committerHarald Welte <laforge@osmocom.org>2019-12-01 22:13:17 +0100
commitef5c43531a2b4d57ed07d4416f276637e5af40df (patch)
tree7284ebf9d0a4743c3fbad53b40e4b9a2e63ffde3
parentf10f0e4df8e3c656404d2c79f23fbc3d61755c3a (diff)
remsim: Ensure non-overlapping junit-xml filenames
The default filename pattern of the JUnit log plugins of TTCN-3 is "junit-xml-%u.xml" where %u represents the PID of the process. This is typically a good idea as the PID doesn't wrap that quickly. However, if you're executing a new docker container for every test suite run, then chances are high that two subsequent runs of the test suite container might end up with the same PID and hence the smae filename. This results in the output file being overwritten, which is what's responsible for many missing RemsimServer_Tests results on the jenkins.osmocom.org test results analyzer. Change-Id: I9b6d1b5a943eb4e058ad2bf7cf8acee7b70e68b6 Closes: OS#4205
-rw-r--r--ttcn3-remsim-test/REMSIM_Tests.cfg1
-rw-r--r--ttcn3-remsim-test/bankd/REMSIM_Tests.cfg1
-rw-r--r--ttcn3-remsim-test/client/REMSIM_Tests.cfg1
3 files changed, 3 insertions, 0 deletions
diff --git a/ttcn3-remsim-test/REMSIM_Tests.cfg b/ttcn3-remsim-test/REMSIM_Tests.cfg
index 5a9f026..837f12b 100644
--- a/ttcn3-remsim-test/REMSIM_Tests.cfg
+++ b/ttcn3-remsim-test/REMSIM_Tests.cfg
@@ -3,6 +3,7 @@
"/osmo-ttcn3-hacks/remsim/REMSIM_Tests.default"
[LOGGING]
+*.JUnitLogger.filename_stem := "junit-xml-server"
[TESTPORT_PARAMETERS]
diff --git a/ttcn3-remsim-test/bankd/REMSIM_Tests.cfg b/ttcn3-remsim-test/bankd/REMSIM_Tests.cfg
index 2e77590..ca83346 100644
--- a/ttcn3-remsim-test/bankd/REMSIM_Tests.cfg
+++ b/ttcn3-remsim-test/bankd/REMSIM_Tests.cfg
@@ -3,6 +3,7 @@
"/osmo-ttcn3-hacks/remsim/REMSIM_Tests.default"
[LOGGING]
+*.JUnitLogger.filename_stem := "junit-xml-bankd"
[TESTPORT_PARAMETERS]
diff --git a/ttcn3-remsim-test/client/REMSIM_Tests.cfg b/ttcn3-remsim-test/client/REMSIM_Tests.cfg
index d3f8d42..2484c73 100644
--- a/ttcn3-remsim-test/client/REMSIM_Tests.cfg
+++ b/ttcn3-remsim-test/client/REMSIM_Tests.cfg
@@ -3,6 +3,7 @@
"/osmo-ttcn3-hacks/remsim/REMSIM_Tests.default"
[LOGGING]
+*.JUnitLogger.filename_stem := "junit-xml-client"
[TESTPORT_PARAMETERS]
# IP address to which ATS binds emulated remsim-server