aboutsummaryrefslogtreecommitdiffstats
path: root/ttcn3-bscnat-test
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-11-13 16:15:44 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2019-11-20 17:17:45 +0100
commitc3f157b939784f19f0337ac92ac727063c8d3452 (patch)
treed0fc97173447761f7c0307a9de51ecf5bd3b835d /ttcn3-bscnat-test
parent0193073507459f51fcef1b66dc0a8cfb619fffe3 (diff)
Update ttcn3-*/jenkins.sh to log stdout+stderr of process to log file
This way we get VTY parsing failures as well as backtraces upon process crash. Related: OS#4212 Change-Id: I3d9f6de638dbc07391a32c6a0cbd469dc5adf2b5
Diffstat (limited to 'ttcn3-bscnat-test')
-rwxr-xr-xttcn3-bscnat-test/jenkins.sh3
-rw-r--r--ttcn3-bscnat-test/osmo-bsc-nat.cfg4
2 files changed, 4 insertions, 3 deletions
diff --git a/ttcn3-bscnat-test/jenkins.sh b/ttcn3-bscnat-test/jenkins.sh
index 61ea89b..d52e79a 100755
--- a/ttcn3-bscnat-test/jenkins.sh
+++ b/ttcn3-bscnat-test/jenkins.sh
@@ -23,7 +23,8 @@ docker run --rm \
--network $NET_NAME --ip 172.18.15.20 \
-v $VOL_BASE_DIR/bscnat:/data \
--name ${BUILD_TAG}-bscnat -d \
- $REPO_USER/osmo-nitb-$IMAGE_SUFFIX osmo-bsc_nat -c /data/osmo-bsc-nat.cfg
+ $REPO_USER/osmo-nitb-$IMAGE_SUFFIX \
+ /bin/sh -c "osmo-bsc_nat -c /data/osmo-bsc-nat.cfg >/data/osmo-bsc-nat.log 2>&1"
echo Starting container with BSCNAT testsuite
docker run --rm \
diff --git a/ttcn3-bscnat-test/osmo-bsc-nat.cfg b/ttcn3-bscnat-test/osmo-bsc-nat.cfg
index b873b21..c7518b7 100644
--- a/ttcn3-bscnat-test/osmo-bsc-nat.cfg
+++ b/ttcn3-bscnat-test/osmo-bsc-nat.cfg
@@ -6,9 +6,9 @@ log gsmtap 172.18.15.203
logging level set-all debug
logging filter all 1
!
-log file /data/osmo-bsc_nat.log
+log stderr
logging filter all 1
- logging color 0
+ logging color 1
logging print category 1
logging timestamp 1
logging print extended-timestamp 1