aboutsummaryrefslogtreecommitdiffstats
path: root/ttcn3-pcu-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-pcu-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-pcu-test')
-rwxr-xr-xttcn3-pcu-test/jenkins-sns.sh2
-rwxr-xr-xttcn3-pcu-test/jenkins.sh2
-rw-r--r--ttcn3-pcu-test/osmo-pcu.cfg2
-rw-r--r--ttcn3-pcu-test/sns/osmo-pcu.cfg4
4 files changed, 5 insertions, 5 deletions
diff --git a/ttcn3-pcu-test/jenkins-sns.sh b/ttcn3-pcu-test/jenkins-sns.sh
index fb6ccd3..51b5f64 100755
--- a/ttcn3-pcu-test/jenkins-sns.sh
+++ b/ttcn3-pcu-test/jenkins-sns.sh
@@ -27,7 +27,7 @@ docker run --rm \
-v $VOL_BASE_DIR/unix:/data/unix \
--name ${BUILD_TAG}-pcu-sns -d \
$REPO_USER/osmo-pcu-$IMAGE_SUFFIX \
- /usr/local/bin/respawn.sh osmo-pcu -c /data/osmo-pcu.cfg
+ /bin/sh -c "/usr/local/bin/respawn.sh osmo-pcu -c /data/osmo-pcu.cfg -i 172.18.14.10 >>/data/osmo-pcu.log 2>&1"
echo Starting container with PCU testsuite
docker run --rm \
diff --git a/ttcn3-pcu-test/jenkins.sh b/ttcn3-pcu-test/jenkins.sh
index 8c855f1..d4e8be0 100755
--- a/ttcn3-pcu-test/jenkins.sh
+++ b/ttcn3-pcu-test/jenkins.sh
@@ -34,7 +34,7 @@ docker run --rm \
-v $VOL_BASE_DIR/unix:/data/unix \
--name ${BUILD_TAG}-pcu -d \
$REPO_USER/osmo-pcu-$IMAGE_SUFFIX \
- /usr/local/bin/respawn.sh osmo-pcu -c /data/osmo-pcu.cfg -i 172.18.13.10
+ /bin/sh -c "/usr/local/bin/respawn.sh osmo-pcu -c /data/osmo-pcu.cfg -i 172.18.13.10 >>/data/osmo-pcu.log 2>&1"
echo Starting container with PCU testsuite
docker run --rm \
diff --git a/ttcn3-pcu-test/osmo-pcu.cfg b/ttcn3-pcu-test/osmo-pcu.cfg
index e486362..d7ef445 100644
--- a/ttcn3-pcu-test/osmo-pcu.cfg
+++ b/ttcn3-pcu-test/osmo-pcu.cfg
@@ -2,7 +2,7 @@ log gsmtap 172.18.13.10
logging level set-all debug
logging filter all 1
-log file /data/osmo-pcu.log
+log stderr
logging filter all 1
logging color 1
logging print level 1
diff --git a/ttcn3-pcu-test/sns/osmo-pcu.cfg b/ttcn3-pcu-test/sns/osmo-pcu.cfg
index 0b20ecb..884261a 100644
--- a/ttcn3-pcu-test/sns/osmo-pcu.cfg
+++ b/ttcn3-pcu-test/sns/osmo-pcu.cfg
@@ -2,9 +2,9 @@ log gsmtap 172.18.14.10
logging level set-all debug
logging filter all 1
-log file /data/osmo-pcu.log
+log stderr
logging filter all 1
- logging color 0
+ logging color 1
logging print level 1
logging print category 1
logging print category-hex 0